Skip to content

docs: version drop-down, version out of the pages, pinned docs build - #468

Open
MariusBgm wants to merge 1 commit into
mainfrom
dev/docs_version_selector
Open

MariusBgm wants to merge 1 commit into
mainfrom
dev/docs_version_selector

Conversation

@MariusBgm

Copy link
Copy Markdown
Collaborator
  • the version is no longer in any page (html_title, sidebar): _static/version.js fills it in from documentation_options.js, so a version bump changes 2 files instead of all 78 pages
  • on vectorgrp.github.io/sil-kit-docs, version.js reads the versions.json next to the docs and shows a version drop-down that keeps the page, and a banner on older releases, main and PR previews; elsewhere it shows the plain version as before
  • build-docs.yml installs with docs_constraints.txt (every package pinned), so the published HTML only changes when the sources do; docs_requirements.txt stays loose for builds on Python 3.8
  • the sidebar's home link pointed to contents.html relative to each page, a 404 in every subfolder

- the version is no longer in any page (html_title, sidebar):
  _static/version.js fills it in from documentation_options.js, so a
  version bump changes 2 files instead of all 78 pages
- on vectorgrp.github.io/sil-kit-docs, version.js reads the versions.json
  next to the docs and shows a version drop-down that keeps the page, and
  a banner on older releases, main and PR previews; elsewhere it shows the
  plain version as before
- build-docs.yml installs with docs_constraints.txt (every package
  pinned), so the published HTML only changes when the sources do;
  docs_requirements.txt stays loose for builds on Python 3.8
- the sidebar's home link pointed to contents.html relative to each page,
  a 404 in every subfolder

Signed-off-by: Marius Börschig <marius.boerschig@vector.com>

@KonradBreitsprecherBkd KonradBreitsprecherBkd left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two points to clarify

sudo apt-get update
sudo apt-get install -y doxygen
python3 -m pip install --quiet -r SilKit/ci/docker/docs_requirements.txt
python3 -m pip install --quiet -r SilKit/ci/docker/docs_requirements.txt -c SilKit/ci/docker/docs_constraints.txt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not understand why we need the docs_constraint.txt. We pin the version in the requirements.txt, why should we care about the requirements of the 2. gen of dependencies?

Comment thread docs/_static/version.js
}
}

function dropDown(data, siteRoot) {

@KonradBreitsprecherBkd KonradBreitsprecherBkd Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a local build I only had a single version at hand, so I could not verify that there is a dropdown. Did you ever see it?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants