Skip to content

About

HTML documentation for SIL Kit

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sil-kit-docs

HTML documentation for SIL Kit, is available here

Versions

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/main on every docs change on main,
  • docs/vX.Y.Z once, for each release tag,
  • docs/pr-N when 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.json in every folder;
  • noindex on 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).

Common tasks

  • Correct a released version: commit to its docs/vX.Y.Z branch, 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:
    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 docs
    
    A pull request runs the same steps and uploads the site as the github-pages artifact, 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.

About

HTML documentation for SIL Kit

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages