Repository navigation
ci: build the docs without Docker - #2742
Merged
Merged
Conversation
Install the hash-pinned docs requirements with setup-python and run mkdocs build directly, instead of building on top of the squidfunk/mkdocs-material image. Add mkdocs-material to docs/requirements.in, pinned to the version the image currently ships, so the requirements file describes the whole build. docs/Dockerfile stays for local previews. Fixes #2741
Contributor
Dependency ReviewThe following issues were found:
License Issuesdocs/requirements.txt
OpenSSF ScorecardScorecard details
Scanned Files
|
|
phipag
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Changes
The docs workflows built the site inside a container based on the third-party
squidfunk/mkdocs-materialimage. This switches them to a native build from the hash-pinneddocs/requirements.txt, matching how the TypeScript and Python repos build their docs.docs/requirements.in: addmkdocs-material==9.8.0, the version the current base image shipsdocs/requirements.txt: regenerated withpip-compile --generate-hashes. Existing pins are unchanged; it addsmkdocs-materialand its dependenciesbuild-docs.ymland thedocsjob inrelease.yml: replacedocker build/docker runwithactions/setup-python(v7.1.0, pinned by SHA, Python 3.12, pip cache),pip install --require-hashes -r docs/requirements.txtandmkdocs build. Also drop the unusedmkdir -p dist, since these jobs deploysite/docs/Dockerfileandmake docs-local-dockerare unchanged and remain available for local previewsVerification: built the docs locally both ways, with the current Docker flow and natively in a fresh Python 3.12 venv using the new requirements. The output has the same file list and byte-identical content (apart from the copied
requirements.*files, which #2740 excludes from the site).Issue number: closes #2741
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.