Open prjemian opened 2 years ago
So there's a sphinx extension called sphinx-multiversion and there's an example of a PR from another project
Work will not be complete for this milestone, moving to next milestone.
The PyData Sphinx theme documentation provides this feature with their Sphinx-built docs, using switcher.json
. A search of the source repository provides indications how the feature is provided.
You mean the version switcher
What changes are needed to our publishing workflow to retain different versions of the documentation? Now, the current version is published to the root of the gh-pages
branch. Perhaps we keep that but make a subdirectory for older versions. That would be additional task(s) for the workflow. But maybe there is already automation for this.
Note that each build is available as a download artifact: https://github.com/nexusformat/definitions/actions/runs/3098877880
Look at the bottom of the page:
From Dec 2 2022 telco, add 'Preview documentation for next release (v2022.07 + N commits + 7 digit commit hash)' label to documentation (header or footer). Also, proposal is to make the default selection the most recent release, not the state of the main branch.
Originally posted by @phyy-nx in https://github.com/nexusformat/definitions/issues/1228#issuecomment-1335428418
Here is a working example in a demo repository: https://prjemian.github.io/demo2301/1.0.3/v_swi.html
The NeXus docs may be too bit to keep multiple versions in the gh-pages
branch. (Makes clones of the definitions
repository very large.) If so, we can explore keeping the cache of versions on a remote server.
It would be nice to see the HTML documentation for any version of the NeXus standard (as much as may be made available). An example is the documentation of Python as shown:
This would be in keeping with the current release procedure (step 11) and benefit the community.
Presently, a PDF copy of a tag is committed to the repository: https://github.com/nexusformat/definitions/tree/main/legacy_docs
Originally posted by @prjemian in https://github.com/nexusformat/definitions/issues/1016#issuecomment-1061073169