Skip to content

Commit 2092876

Browse files
Merge pull request #2403 from VWS-Python/simplify-docs
Simplify docs
2 parents ad798f8 + cbca623 commit 2092876

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ repos:
243243

244244
- id: linkcheck
245245
name: linkcheck
246-
entry: uv run --extra=dev sphinx-build -M clean docs/source/ docs/build/ -W && uv run --extra=dev sphinx-build -M linkcheck docs/source/ docs/build/ -W
246+
entry: make -C docs/ linkcheck SPHINXOPTS=-W
247247
language: python
248248
types_or: [rst]
249249
stages: [manual]
@@ -252,7 +252,7 @@ repos:
252252

253253
- id: spelling
254254
name: spelling
255-
entry: uv run --extra=dev sphinx-build -M clean docs/source/ docs/build/ -W && uv run --extra=dev sphinx-build -M spelling docs/source/ docs/build/ -W
255+
entry: make -C docs/ spelling SPHINXOPTS=-W
256256
language: python
257257
types_or: [rst]
258258
stages: [manual]
@@ -261,7 +261,7 @@ repos:
261261

262262
- id: docs
263263
name: Build Documentation
264-
entry: uv run --extra=dev sphinx-build -M clean docs/source/ docs/build/ -W && uv run --extra=dev sphinx-build -M html docs/source/ docs/build/ -W
264+
entry: make docs
265265
language: python
266266
stages: [manual]
267267
pass_filenames: false

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:
13-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
@uv run --extra=dev $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

1515
.PHONY: help Makefile
1616

1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@uv run --extra=dev $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)