Skip to content

Commit 82880b4

Browse files
Merge pull request #2703 from VWS-Python/remove-docs-makefile
Remove docs/Makefile and use sphinx-build directly
2 parents c794efd + eb9fb0f commit 82880b4

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ repos:
301301

302302
- id: linkcheck
303303
name: linkcheck
304-
entry: make -C docs/ linkcheck SPHINXOPTS=-W
304+
entry: uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build
305+
-W
305306
language: python
306307
types_or: [rst]
307308
stages: [manual]
@@ -310,7 +311,8 @@ repos:
310311

311312
- id: spelling
312313
name: spelling
313-
entry: make -C docs/ spelling SPHINXOPTS=-W
314+
entry: uv run --extra=dev sphinx-build -M spelling docs/source docs/build
315+
-W
314316
language: python
315317
types_or: [rst]
316318
stages: [manual]
@@ -319,7 +321,7 @@ repos:
319321

320322
- id: docs
321323
name: Build Documentation
322-
entry: make docs
324+
entry: uv run --extra=dev sphinx-build -M html docs/source docs/build -W
323325
language: python
324326
stages: [manual]
325327
pass_filenames: false

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
SHELL := /bin/bash -euxo pipefail
2-
3-
# Treat Sphinx warnings as errors
4-
SPHINXOPTS := -W
5-
62
.PHONY: docs
73
docs:
8-
make -C docs clean html SPHINXOPTS=$(SPHINXOPTS)
4+
uv run --extra=dev sphinx-build -M html docs/source docs/build -W
95

106
.PHONY: open-docs
117
open-docs:

docs/Makefile

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

0 commit comments

Comments
 (0)