HTML documentation for SIL Kit, is available here
| URL | Content | Branch |
|---|---|---|
https://vectorgrp.github.io/sil-kit-docs/ |
the latest release | (copy) |
…/sil-kit-docs/vX.Y.Z/ |
a release | docs/vX.Y.Z |
…/sil-kit-docs/main/ |
the main branch of SIL Kit | docs/main |
…/sil-kit-docs/pr-N/ |
a pull request, published on request | docs/pr-N |
…/sil-kit-docs/versions.json |
the list behind the version drop-down | (generated) |
Each docs/* branch holds one version's HTML at its top level, as a single
commit without history. The CI of vectorgrp/sil-kit builds the docs and
force-pushes them:
docs/mainon every docs change on main,docs/vX.Y.Zonce, for each release tag,docs/pr-Nwhen someone runs the docs workflow for that pull request.
It then sends a docs-updated dispatch to this repository.
The Pages workflow then builds the site from
all docs/* branches with scripts/assemble.py:
- one folder per branch;
- the newest release copied to the root as well, so links from before versioning keep working;
- a
versions.jsonin every folder; noindexon main and pull request pages.
It runs daily as well and deletes the branches of closed pull requests.
Until the first docs/vX.Y.Z branch exists, the root is the docs/ folder
on main (5.0.8, the last version published by hand).
- Correct a released version: commit to its
docs/vX.Y.Zbranch, then run the Pages workflow (Actions → Pages → Run workflow). CI never overwrites a release branch. - Remove a version: delete its branch, then run the Pages workflow.
- Try the site builder locally:
A pull request runs the same steps and uploads the site as the
git fetch --depth=1 origin '+refs/heads/docs/*:refs/remotes/origin/docs/*' python3 -m unittest discover -s scripts -p 'test_*.py' python3 scripts/assemble.py --out _site --legacy-root docsgithub-pagesartifact, without deploying.
Pages deploys only from main, and only once the Pages source is set to
"GitHub Actions" (Settings → Pages). While it still serves main:/docs, runs
on main stop after assembling.