Skip to content

Commit d0f7dc6

Browse files
marcialwushuCopilot
andcommitted
ci: update MkDocs workflow to use requirements-docs.txt for dependencies
Co-authored-by: Copilot <copilot@github.com>
1 parent 800a539 commit d0f7dc6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docs-gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "docs/**"
88
- "mkdocs.yml"
9+
- "requirements-docs.txt"
910
- ".github/workflows/docs-gh-pages.yml"
1011
workflow_dispatch:
1112

@@ -29,11 +30,12 @@ jobs:
2930
with:
3031
python-version: "3.12"
3132
cache: "pip"
33+
cache-dependency-path: "requirements-docs.txt"
3234

3335
- name: Install MkDocs
3436
run: |
3537
python -m pip install --upgrade pip
36-
pip install mkdocs mkdocs-material
38+
pip install -r requirements-docs.txt
3739
3840
- name: Build docs
3941
run: mkdocs build --strict

requirements-docs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mkdocs
2+
mkdocs-material

0 commit comments

Comments
 (0)