From 97eba39c1fa2c7791da6ed644fee28666d948a33 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 19 Nov 2021 16:37:15 -0500 Subject: build: use cog to maintain data copied into docs --- Makefile | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'Makefile') 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. -- cgit v1.2.1