fix(docs): pin the toolchain in a requirements file so pip caching works
actions/setup-python's pip cache needs a requirements.txt or pyproject.toml to hash, and failed the whole job without one. Putting the pin in a file rather than inline also puts it somewhere a person would look for it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
7c9bde2cfd
commit
ba5892fa9e
@@ -31,12 +31,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
cache-dependency-path: docs/requirements.txt
|
||||||
|
|
||||||
# Pinned deliberately. The Material maintainers have announced that MkDocs
|
- run: pip install -r docs/requirements.txt
|
||||||
# 2.0 removes the plugin system and breaks every theme override with no
|
|
||||||
# migration path — an unpinned install would break this build on the day it
|
|
||||||
# lands, for a docs site nobody was editing.
|
|
||||||
- run: pip install 'mkdocs-material==9.7.7'
|
|
||||||
|
|
||||||
- run: mkdocs build --strict
|
- run: mkdocs build --strict
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Pinned deliberately. The Material maintainers have announced that MkDocs 2.0
|
||||||
|
# removes the plugin system and breaks every theme override with no migration
|
||||||
|
# path, so an unpinned install would break this build on the day it lands — for a
|
||||||
|
# docs site nobody was editing.
|
||||||
|
mkdocs-material==9.7.7
|
||||||
@@ -75,3 +75,8 @@ markdown_extensions:
|
|||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
|
|
||||||
|
# The pinned toolchain lives in docs/ so the Pages workflow can cache on it; it is
|
||||||
|
# not a page.
|
||||||
|
exclude_docs: |
|
||||||
|
requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user