Skip to content

Commit 2971704

Browse files
committed
Use uv for documentation building as well
1 parent 6042648 commit 2971704

File tree

6 files changed

+457
-65
lines changed

6 files changed

+457
-65
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9+
- uses: astral-sh/setup-uv@v7
910
- uses: actions/checkout@v5
11+
1012
- name: Build Sphinx documentation
1113
run: |
12-
pip install -r doc/requirements.txt
13-
sphinx-build doc/ ./doc/_build/html/
14+
uv run --group doc sphinx-build doc/ _site/
1415
1516
- name: Upload artifact
1617
# Automatically uploads an artifact from the './_site' directory by default
1718
uses: actions/upload-pages-artifact@v3
18-
with:
19-
path: doc/_build/html/
2019

2120
deploy:
2221
if: github.ref == 'refs/heads/master'

doc/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

doc/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ Documentation = "https://pythonnet.github.io/clr-loader/"
3939
dev = [
4040
"pytest>=7.0"
4141
]
42+
doc = [
43+
"furo>=2022.9.15",
44+
"pygments>=2.7",
45+
"sphinx>=5.3.0",
46+
]
4247

4348
[tool.setuptools]
4449
zip-safe = false

0 commit comments

Comments
 (0)