A minimal teaching scaffold where students contribute Markdown or Jupyter notebooks to a GitHub repo and see their changes reflected on a wiki-like site.
# 1) Clone the repo
# 2) (Optional) Create & activate a virtualenv
pip install -r requirements.txt
mkdocs serve # http://127.0.0.1:8000- Create a Markdown file under
docs/(e.g.,docs/my-page.md). - Add it to the
navsection ofmkdocs.yml.
- Save an
.ipynbindocs/notebooks/(e.g.,docs/notebooks/lesson.ipynb). - Add it to
navinmkdocs.yml.
In mkdocs.yml you can enable execution:
plugins:
- mkdocs-jupyter:
execute: true
kernel_name: python3From your machine:
mkdocs gh-deployThis publishes the site to the gh-pages branch of the repository.
Uncomment the provided workflow in .github/workflows/deploy.yml and push to main to auto-deploy via GitHub Pages.
- Fork or create a branch.
- Add/edit files in
docs/(Markdown) ordocs/notebooks/(notebooks). - Update
mkdocs.ymlnav. - Open a Pull Request.
- After merge, the site is deployed.