summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-08-04 21:25:23 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-08-04 21:25:23 +0200
commit0539e9220dbc0eb90660c7006bd163470faec97e (patch)
tree08820fa4410770088137a12de2da2c5f1c283968
parentfc5d7bfb3b34e859b2fe59071b453a0a9ffee8d0 (diff)
downloadpython-lxml-0539e9220dbc0eb90660c7006bd163470faec97e.tar.gz
Avoid duplicate toc entries in the API docs by excluding the generated .so files. The .pyx files are still found.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c00f54a7..a60fbcb0 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,8 @@ apidoc: docclean inplace3
@[ -x "`which sphinx-apidoc`" ] \
&& (echo "Generating API docs ..." && \
PYTHONPATH=src:$(PYTHONPATH) sphinx-apidoc -e -P -T -o doc/api src/lxml \
- "*includes" "*tests" "*pyclasslookup.py" "*usedoctest.py" "*html/_html5builder.py") \
+ "*includes" "*tests" "*pyclasslookup.py" "*usedoctest.py" "*html/_html5builder.py" \
+ "*.so" "*.pyd") \
|| (echo "not generating Sphinx autodoc API rst files")
apihtml: apidoc