Skip to content

Commit 1c64f32

Browse files
Add dependency group for docs to use in docs publishing workflow.
1 parent 7f7bcf8 commit 1c64f32

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- 'docs/**'
99
- 'mkdocs.yml'
10+
- '.github/workflows/docs.yml'
1011

1112
jobs:
1213
deploy:
@@ -24,7 +25,9 @@ jobs:
2425
- name: Install MkDocs and dependencies
2526
run: |
2627
python -m pip install --upgrade pip
27-
pip install mkdocs mkdocs-macros-plugin requests
28+
pip install uv
29+
uv pip install -r pyproject.toml --extra docs
30+
2831
2932
- name: Build docs
3033
run: mkdocs build

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ requires = ["setuptools>=61.0"]
2929
build-backend = "setuptools.build_meta"
3030

3131
[dependency-groups]
32+
docs = [
33+
"mkdocs",
34+
"mkdocs-jupyter",
35+
"mkdocs-macros-plugin",
36+
"mkdocs-material",
37+
"mkdocstrings[python]",
38+
"mkdocs-material",
39+
]
40+
3241
dev = [
3342
"black",
3443
"coverage",
@@ -39,7 +48,6 @@ dev = [
3948
"mkdocs-material",
4049
"mkdocstrings[python]",
4150
"mkdocs-material",
42-
"mkdocstrings[python]",
4351
"nbval",
4452
"pre-commit",
4553
"pytest",

0 commit comments

Comments
 (0)