Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ repos:

- id: linkcheck
name: linkcheck
entry: make -C docs/ linkcheck SPHINXOPTS=-W
entry: uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build
-W
language: python
types_or: [rst]
stages: [manual]
Expand All @@ -310,7 +311,8 @@ repos:

- id: spelling
name: spelling
entry: make -C docs/ spelling SPHINXOPTS=-W
entry: uv run --extra=dev sphinx-build -M spelling docs/source docs/build
-W
language: python
types_or: [rst]
stages: [manual]
Expand All @@ -319,7 +321,7 @@ repos:

- id: docs
name: Build Documentation
entry: make docs
entry: uv run --extra=dev sphinx-build -M html docs/source docs/build -W
language: python
stages: [manual]
pass_filenames: false
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
SHELL := /bin/bash -euxo pipefail

# Treat Sphinx warnings as errors
SPHINXOPTS := -W

.PHONY: docs
docs:
make -C docs clean html SPHINXOPTS=$(SPHINXOPTS)
uv run --extra=dev sphinx-build -M html docs/source docs/build -W

.PHONY: open-docs
open-docs:
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.