Skip to content

Commit d1bce9f

Browse files
Run sphinx-build through the standard Makefile
This removes the duplicate configuration of Sphinx input and output directories between the Taskfile and docs/{Makefile,make.bat}.
1 parent ea67486 commit d1bce9f

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

Taskfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
# shellcheck disable=SC2317,SC2329
55
set -Ceufo pipefail
66

7-
#####################
8-
# Global Parameters #
9-
#####################
10-
11-
SPHINX_SOURCEDIR='docs/source/'
12-
SPHINX_BUILDDIR='docs/build/'
13-
147
##############
158
# Main Tasks #
169
##############
@@ -47,11 +40,7 @@ build-docs() {
4740
#######################
4841

4942
sphinx-make() {
50-
uv run sphinx-build \
51-
-M "${1:-help}" \
52-
"${SPHINX_SOURCEDIR}" \
53-
"${SPHINX_BUILDDIR}" \
54-
"${@:2}"
43+
make -C docs SPHINXBUILD='uv run sphinx-build' "$@"
5544
}
5645

5746
generate-fixtures() {

0 commit comments

Comments
 (0)