summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-19 16:37:15 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-19 16:43:07 -0500
commit97eba39c1fa2c7791da6ed644fee28666d948a33 (patch)
tree9fa4091d843525cc641e4a32995c95b94f670205 /Makefile
parentd61a04c3442f73735492b2e34a54b4bc2b80fb34 (diff)
downloadpython-coveragepy-git-97eba39c1fa2c7791da6ed644fee28666d948a33.tar.gz
build: use cog to maintain data copied into docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 2 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 681e6bf1..0032a3dd 100644
--- a/Makefile
+++ b/Makefile
@@ -118,24 +118,8 @@ WEBSAMPLEBETA = $(WEBHOME)/files/sample_coverage_html_beta
$(DOCBIN):
tox -q -e doc --notest
-cmd_help: $(DOCBIN)
- @for cmd in annotate combine debug erase html json report run xml; do \
- echo > doc/help/$$cmd.rst; \
- echo ".. This file is auto-generated by \"make dochtml\", don't edit it manually." >> doc/help/$$cmd.rst; \
- echo >> doc/help/$$cmd.rst; \
- echo ".. code::" >> doc/help/$$cmd.rst; \
- echo >> doc/help/$$cmd.rst; \
- echo " $$ coverage $$cmd --help" >> doc/help/$$cmd.rst; \
- $(DOCBIN)/python -m coverage $$cmd --help | \
- sed \
- -e 's/__main__.py/coverage/' \
- -e '/^Full doc/d' \
- -e 's/^./ &/' \
- >> doc/help/$$cmd.rst; \
- done
-
-dochtml: $(DOCBIN) cmd_help ## Build the docs HTML output.
- $(DOCBIN)/python doc/check_copied_from.py doc/*.rst
+dochtml: $(DOCBIN) ## Build the docs HTML output.
+ $(DOCBIN)/python -m cogapp -crP --verbosity=1 doc/*.rst
$(SPHINXBUILD) -b html doc doc/_build/html
docdev: dochtml ## Build docs, and auto-watch for changes.