TheMulQuaBio / TMQB

The interactive, online Multilingual Quantitative Biologist
MIT License
37 stars 80 forks source link

Jupyter Book Badge

The Multilingual Quantitative Biologist - Source

This repository contains the source code for the The Multilingual Quantitative Biologist online book.

All code in this project was written in and tested with R 3.xx and Python 3.xx, though older language versions (including R 2.xx and Python 2.7) should work in most cases.

Usage

Building the book

If you'd like to develop and and build your own version of Multilingual Quantitative Biologist book, you should:

A fully-rendered HTML version of the book will be built in _build/html/.

Hosting/Deploying the book online

The html version of the book is hosted on the gh-pages branch of this repo, which is then rendered on https://themulquabio.github.io/TMQB/intro.html.

To deal with non-standard kernel dependencies (bash, R) we do not currently use a GitHub actions workflow to automatically build and push the book to this branch, on a push or pull request to master. This is something to look into in the future.

However, the workflow for building the book manually is not too onerous:

The last command will automatically push the latest build to the gh-pages branch. More information on this hosting process can be found here.

Typically after a few minutes the site should be viewable online at https://mhasoba.github.io/TheMulQuaBio. If not, check repository settings under Options -> GitHub Pages to ensure that the gh-pages branch is configured as the build source for GitHub Pages.

An example command to push all new changes to the git repository and is:

git add -A && git commit -m "Commit message" && git push -u origin master

Please do not push changes for every little edit you make to the book (e.g., after fixing some typos). Push only significant changes. Remember, you can deploy the book (by pushing to the gh-pages branch using ghp-import as explained above) without pushing changes to the master branch.

Other tips:

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.

Also, note that:

Credits

This project is created using the excellent open source Jupyter Book project, initiated using executablebooks/cookiecutter-jupyter-book template.

Some chapter-specific credits: