File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 if : (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
5757 uses : JamesIves/github-pages-deploy-action@v4
5858 with :
59- folder : build # Synchronise with Makefile -> OUTPUT_DIR
59+ folder : build # Synchronise with Makefile -> BUILDDIR
6060 single-commit : true # Delete existing files
6161
6262 - name : Purge CDN cache
Original file line number Diff line number Diff line change 33# You can set these variables from the command line.
44PYTHON = python3
55VENVDIR = .venv
6+ # synchronise with render.yml -> deploy step
7+ BUILDDIR = build
68SPHINXBUILD = PATH=$(VENVDIR ) /bin:$$PATH sphinx-build
79BUILDER = html
810JOBS = 8
911SOURCES =
10- # synchronise with render.yml -> deploy step
11- OUTPUT_DIR = build
1212SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
1313
14- ALLSPHINXOPTS = -b $(BUILDER ) -j $(JOBS ) \
15- $(SPHINXOPTS ) $(SPHINXERRORHANDLING ) peps $(OUTPUT_DIR ) $(SOURCES )
14+ ALLSPHINXOPTS = -b $(BUILDER ) \
15+ -j $(JOBS ) \
16+ $(SPHINXOPTS ) $(SPHINXERRORHANDLING ) \
17+ peps $(BUILDDIR ) $(SOURCES )
1618
1719# # html to render PEPs to "pep-NNNN.html" files
1820.PHONY : html
@@ -27,14 +29,17 @@ htmlview: html
2729# # dirhtml to render PEPs to "index.html" files within "pep-NNNN" directories
2830.PHONY : dirhtml
2931dirhtml : BUILDER = dirhtml
30- dirhtml : venv
31- $(SPHINXBUILD ) $(ALLSPHINXOPTS )
32+ dirhtml : html
3233
33- # # check-links to check validity of links within PEP sources
34- .PHONY : check-links
34+ # # linkcheck to check validity of links within PEP sources
35+ .PHONY : linkcheck
3536check-links : BUILDER = linkcheck
36- check-links : venv
37- $(SPHINXBUILD ) $(ALLSPHINXOPTS )
37+ check-links : html
38+
39+ # # check-links (deprecated: use 'make linkcheck' alias instead)
40+ .PHONY : pages
41+ check-links : linkcheck
42+ @echo " \033[0;33mWarning:\033[0;31m 'make check-links' \033[0;33mis deprecated, use\033[0;32m 'make linkcheck' \033[0;33malias instead\033[0m"
3843
3944# # clean to remove the venv and build files
4045.PHONY : clean
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Check the validity of links within PEP sources (runs the `Sphinx linkchecker
8282.. code-block :: shell
8383
8484 python build.py --check-links
85- make check-links
85+ make linkcheck
8686
8787
8888 ``build.py `` usage
Original file line number Diff line number Diff line change 66 python : " 3.11"
77
88 commands :
9- - make dirhtml JOBS=$(nproc) OUTPUT_DIR =_readthedocs/html
9+ - make dirhtml JOBS=$(nproc) BUILDDIR =_readthedocs/html
1010
1111sphinx :
1212 builder : dirhtml
You can’t perform that action at this time.
0 commit comments