Key4hep central documentation
Install python dependencies:
pip install -r requirements.txtFirst fetch the documentation pages from other key4hep repositories:
.github/scripts/fetch_external_sources.sh If the sources already exist but you want to update them, use the --force option.
Then build the site locally:
sphinx-build -M html docs buildCheck the links validity with:
sphinx-build -b linkcheck docs linkcheck
The deployment to github pages happens via the gh-pages branch. On this branch
the documentation goes into the main subdirectory, and we have a redirecting
index.html.
The branch is automatically populated via github actions. However, its history
is not really interesting (even though the action keeps it intact). In case the
repository gets too large, it is possible to remove the branch entirely and
start from scratch (the next run of the action will populate the branch again).
Only the index.html file has to be put onto the branch first.
We also make preview pages for PRs on this repository which will be placed onto
the gh-pages branch as well, but under a dedicated directory. This means that
they are generally reachable by people, if they know the corresponding full
reference.