Skip to content

sib-swiss/course_website_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Course website template

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).

Local development

Install Zensical and mike:

pip install zensical
pip install git+https://github.com/squidfunk/mike.git

Use this repository as a template, clone it locally, and run:

zensical serve

Then open http://localhost:8000/.

Deployment (default: mike)

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 latest

For the next releases, deploy a new version and update latest:

mike deploy --push --update-aliases 0.2 latest

Your documentation will be available at:

Zenodo archival (optional)

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:

  1. Link to Zenodo: Go to https://zenodo.org/account/settings/github/ and connect your GitHub repository.
  2. 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.
  3. 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.

Notes

  • 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:

About

Template to generate course websites in template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages