Hosting (GitHub Pages)¶
This repository publishes its documentation site via GitHub Pages and builds/deploys it via GitHub Actions.
- Live site:
https://cinescope-wkr.github.io/polynomial-optics-modern/ - Deploy workflow:
.github/workflows/pages.yml - MkDocs config:
docs/mkdocs.yml - Docs dependencies:
docs/requirements-docs.txt
Maintainer: Jinwoo Lee (cinescope@kaist.ac.kr)
Enable GitHub Pages (one-time)¶
- Open the repository on GitHub.
- Go to
Settings → Pages. - Under Build and deployment, set Source to GitHub Actions.
Deploy¶
- Push to
main. - Go to
Actionstab and open the latest workflow run: - Deploy MkDocs to GitHub Pages
- Once it finishes, the Pages URL will be shown in the
deployjob (environment:github-pages).
Typical URL format:
https://<owner>.github.io/<repo>/
Local preview¶
From repo root:
python3 -m venv .venv
. .venv/bin/activate
pip install -r docs/requirements-docs.txt
mkdocs serve -f docs/mkdocs.yml
Troubleshooting¶
- If Pages is enabled but the site is stale, check the latest Actions run for
Deploy MkDocs to GitHub Pages. - If the workflow fails at
mkdocs build --strict, fix broken links/anchors indocs/and re-push.