Lines Matching +full:linkcheck +full:- +full:docs
9 SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
10 SPHINXLINT = PATH=$(VENVDIR)/bin:$$PATH sphinx-lint
17 SPHINXERRORHANDLING = -W
20 PAPEROPT_a4 = -D latex_elements.papersize=a4paper
21 PAPEROPT_letter = -D latex_elements.papersize=letterpaper
23 ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) -j $(JOBS) \
26 .PHONY: help build html htmlhelp latex text texinfo changes linkcheck \
27 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
28 autobuild-dev autobuild-stable venv
42 @echo " linkcheck to check all external links for integrity"
45 @echo " pydoc-topics to regenerate the pydoc topics file"
46 @echo " dist to create a \"dist\" directory with archived docs for download"
51 -mkdir -p build
55 @if [ -f ../Misc/NEWS ] ; then \
58 elif $(BLURB) help >/dev/null 2>&1 && $(SPHINXBUILD) --version >/dev/null 2>&1; then \
59 if [ -d ../Misc/NEWS.d ]; then \
61 $(BLURB) merge -f build/NEWS; \
63 echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
68 echo "Missing the required blurb or sphinx-build tools."; \
88 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
108 linkcheck: BUILDER = linkcheck target
109 linkcheck: target
120 "positives, append that file to tools/susp-ignored.csv."; \
138 pydoc-topics: BUILDER = pydoc-topics
139 pydoc-topics: build
141 "cp build/pydoc-topics/topics.py ../Lib/pydoc_data/topics.py"
144 …$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/inde…
146 clean: clean-venv
147 -rm -rf build/*
149 clean-venv:
150 rm -rf $(VENVDIR)
153 @if [ -d $(VENVDIR) ] ; then \
155 echo "To recreate it, remove it first with \`make clean-venv'."; \
157 $(PYTHON) -m venv $(VENVDIR); \
158 $(VENVDIR)/bin/python3 -m pip install --upgrade pip; \
159 $(VENVDIR)/bin/python3 -m pip install -r $(REQUIREMENTS); \
164 rm -rf dist
165 mkdir -p dist
169 cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
170 tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html
171 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-html.tar
172 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-html.zip python-$(DISTVERSION)-docs-html)
173 rm -r dist/python-$(DISTVERSION)-docs-html
174 rm dist/python-$(DISTVERSION)-docs-html.tar
178 cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
179 tar -C dist -cf dist/python-$(DISTVERSION)-docs-text.tar python-$(DISTVERSION)-docs-text
180 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-text.tar
181 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-text.zip python-$(DISTVERSION)-docs-text)
182 rm -r dist/python-$(DISTVERSION)-docs-text
183 rm dist/python-$(DISTVERSION)-docs-text.tar
186 rm -rf build/latex
188 -sed -i 's/makeindex/makeindex -q/' build/latex/Makefile
189 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2)
190 cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-a4.zip
191 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-a4.tar.bz2
194 rm -rf build/latex
196 -sed -i 's/makeindex/makeindex -q/' build/latex/Makefile
197 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2)
198 cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip
199 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
202 rm -rf build/epub
204 cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
207 rm -rf build/texinfo
209 make info --directory=build/texinfo
210 cp -pPR build/texinfo dist/python-$(DISTVERSION)-docs-texinfo
211 tar -C dist -cf dist/python-$(DISTVERSION)-docs-texinfo.tar python-$(DISTVERSION)-docs-texinfo
212 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-texinfo.tar
213 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-texinfo.zip python-$(DISTVERSION)-docs-texinfo)
214 rm -r dist/python-$(DISTVERSION)-docs-texinfo
215 rm dist/python-$(DISTVERSION)-docs-texinfo.tar
218 # Check the docs and NEWS files with sphinx-lint.
220 $(SPHINXLINT) -i tools -i $(VENVDIR) --enable default-role
221 $(SPHINXLINT) --enable default-role ../Misc/NEWS.d/next/
224 @echo "The serve target was removed, use htmlview instead (see bpo-36329)"
229 # To ensure such changes are picked up, we build the published docs with
230 # `-E` (to ignore the cached environment) and `-a` (to ignore already existing
234 autobuild-dev:
235 make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
238 autobuild-dev-html:
239 make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
241 # for stable releases: only build if not in pre-release stage (alpha, beta)
243 autobuild-stable:
248 @make autobuild-dev
250 autobuild-stable-html:
255 @make autobuild-dev-html