Find instructions at sib-swiss.github.io/gh-pages-training/.
This website is generated with Zensical.
Default deployment is versioned deployment with mike (for Zensical).
Install Zensical and mike:
pip install zensical
pip install git+https://github.com/squidfunk/mike.gitUse this repository as a template, clone it locally, and run:
zensical serveThen open http://localhost:8000/.
Set the site URL in zensical.toml to your GitHub Pages URL:
Deploy the first version and set latest as default:
mike deploy --push --update-aliases 0.1 latest
mike set-default --push latestFor the next releases, deploy a new version and update latest:
mike deploy --push --update-aliases 0.2 latestYour documentation will be available at:
- https://yourname.github.io/reponame/
- https://yourname.github.io/reponame/0.1/
- https://yourname.github.io/reponame/0.2/
To archive course versions on Zenodo and assign DOIs, configure .zenodo.json with your metadata:
{
"title": "Course Name",
"creators": [{"name": "Your Name", "affiliation": "Your Institution"}],
"description": "...",
"keywords": ["course", "training"],
"license": "CC-BY-4.0"
}Then:
- Link to Zenodo: Go to https://zenodo.org/account/settings/github/ and connect your GitHub repository.
- Create a release: On GitHub, go to Releases and click "Create a new release".
- Set tag to match your version (e.g.,
v0.1). - Publish the release.
- Set tag to match your version (e.g.,
- Zenodo automates the rest: Zenodo will automatically fetch your repository snapshot and generate a DOI.
Your course will then have a citable DOI at https://doi.org/10.5281/zenodo.XXXXXXX.
- mike publishes to the gh-pages branch.
- In GitHub repository settings, configure Pages to serve from the gh-pages branch.
- The workflow in .github/workflows/render_page.yml still uses MkDocs gh-deploy and should be updated or removed if mike is your deployment method.
More documentation:
- Zensical versioning: https://zensical.org/docs/setup/versioning/
- Zensical docs: https://zensical.org/docs/
- mike docs: https://github.com/squidfunk/mike