Skip to content

ci: build the docs without Docker - #2742

Merged
phipag merged 2 commits into
mainfrom
ci/build-docs-without-docker
Nov 5, 2026
Merged

phipag merged 2 commits into
mainfrom
ci/build-docs-without-docker

Conversation

@dreamorosi

Copy link
Copy Markdown
Contributor

Summary

Changes

The docs workflows built the site inside a container based on the third-party squidfunk/mkdocs-material image. This switches them to a native build from the hash-pinned docs/requirements.txt, matching how the TypeScript and Python repos build their docs.

  • docs/requirements.in: add mkdocs-material==9.8.0, the version the current base image ships
  • docs/requirements.txt: regenerated with pip-compile --generate-hashes. Existing pins are unchanged; it adds mkdocs-material and its dependencies
  • build-docs.yml and the docs job in release.yml: replace docker build/docker run with actions/setup-python (v7.1.0, pinned by SHA, Python 3.12, pip cache), pip install --require-hashes -r docs/requirements.txt and mkdocs build. Also drop the unused mkdir -p dist, since these jobs deploy site/
  • docs/Dockerfile and make docs-local-docker are unchanged and remain available for local previews

Verification: 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.

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
@dreamorosi
dreamorosi requested a review from a team as a code owner November 4, 2026 17:39
@dreamorosi dreamorosi self-assigned this Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ❌ 1 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.
See the Details below.

License Issues

docs/requirements.txt

PackageVersionLicenseIssue Type
certifi2026.10.23MPL-2.0Incompatible License
Allowed Licenses: Apache-1.1, Apache-2.0, ISC, MIT, MIT-0, MIT-CMU, MIT-enna, MIT-feh, MIT-Festival, MIT-Modern-Variant, MIT-open-group, MIT-testregex, MIT-Wu, BSD-1-Clause, BSD-2-Clause, BSD-2-Clause-Views, BSD-3-Clause, BSD-3-Clause-Attribution, BSD-3-Clause-Clear, BSD-3-Clause-flex, BSD-3-Clause-HP, BSD-3-Clause-LBNL, BSD-3-Clause-Modification, BSD-3-Clause-No-Military-License, BSD-3-Clause-No-Nuclear-License, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause-No-Nuclear-Warranty, BSD-3-Clause-Open-MPI, UPL-1.0
Excluded from license check: pkg:maven/org.graalvm.buildtools/native-maven-plugin, pkg:maven/org.junit/junit-bom

OpenSSF Scorecard

Scorecard details
PackageVersionScoreDetails
actions/actions/setup-python 6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 🟢 6.6
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained🟢 1015 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Binary-Artifacts🟢 10no binaries found in the repo
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Pinned-Dependencies🟢 7dependency not pinned by hash detected -- score normalized to 7
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
SAST🟢 9SAST tool is not run on all commits -- score normalized to 9
pip/babel 2.18.0 UnknownUnknown
pip/backrefs 8.2 UnknownUnknown
pip/certifi 2026.10.23 🟢 6.5
Details
CheckScoreReason
Code-Review🟢 6Found 4/6 approved changesets -- score normalized to 6
Security-Policy🟢 10security policy file detected
Binary-Artifacts🟢 10no binaries found in the repo
Maintained🟢 88 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 8
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Pinned-Dependencies🟢 5dependency not pinned by hash detected -- score normalized to 5
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 9license file detected
Fuzzing⚠️ 0project is not fuzzed
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
Packaging🟢 10packaging workflow detected
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
pip/charset-normalizer 3.5.2 UnknownUnknown
pip/colorama 0.4.6 UnknownUnknown
pip/idna 3.20 UnknownUnknown
pip/mkdocs-material 9.8.0 UnknownUnknown
pip/mkdocs-material-extensions 1.3.1 UnknownUnknown
pip/paginate 0.5.7 UnknownUnknown
pip/pygments 2.21.0 UnknownUnknown
pip/pymdown-extensions 12.3 UnknownUnknown
pip/requests 2.34.2 UnknownUnknown
pip/urllib3 2.8.0 UnknownUnknown

Scanned Files

  • .github/workflows/release.yml
  • docs/requirements.txt

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@phipag
phipag merged commit 585a425 into main Nov 5, 2026
15 of 16 checks passed
@phipag
phipag deleted the ci/build-docs-without-docker branch November 5, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: build the docs without Docker in CI

2 participants