From a005ce15e11ad66e384b5eed095812db04bc9420 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 11 Aug 2019 18:05:04 -0400 Subject: Fix autosphinx links in uploaded release notes The :meth:`.CoverageData.foobar` syntax isn't understood by pandoc when converting to markdown. A Sphinx rst builder converts them into more basic Sphinx links first. --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6810fdeb..580f1f23 100644 --- a/Makefile +++ b/Makefile @@ -114,8 +114,8 @@ uninstall: # Documentation -SPHINXBUILD = .tox/doc/bin/sphinx-build -SPHINXOPTS = -a -E doc +SPHINXOPTS = -aE +SPHINXBUILD = .tox/doc/bin/sphinx-build $(SPHINXOPTS) WEBHOME = ~/web/stellated/ WEBSAMPLE = $(WEBHOME)/files/sample_coverage_html WEBSAMPLEBETA = $(WEBHOME)/files/sample_coverage_html_beta @@ -124,12 +124,12 @@ docreqs: tox -q -e doc --notest dochtml: docreqs - $(SPHINXBUILD) -b html $(SPHINXOPTS) doc/_build/html + $(SPHINXBUILD) -b html doc doc/_build/html @echo @echo "Build finished. The HTML pages are in doc/_build/html." docspell: docreqs - $(SPHINXBUILD) -b spelling $(SPHINXOPTS) doc/_spell + $(SPHINXBUILD) -b spelling doc doc/_spell publish: rm -f $(WEBSAMPLE)/*.* @@ -141,5 +141,6 @@ publishbeta: mkdir -p $(WEBSAMPLEBETA) cp doc/sample_html_beta/*.* $(WEBSAMPLEBETA) -upload_relnotes: - python ci/upload_relnotes.py CHANGES.rst pypi/coverage +upload_relnotes: docreqs + $(SPHINXBUILD) -b rst doc /tmp/rst_rst + python ci/upload_relnotes.py /tmp/rst_rst/changes.rst pypi/coverage -- cgit v1.2.1