File tree 4 files changed +18
-13
lines changed
4 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 56
56
if : (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
57
57
uses : JamesIves/github-pages-deploy-action@v4
58
58
with :
59
- folder : build # Synchronise with Makefile -> OUTPUT_DIR
59
+ folder : build # Synchronise with Makefile -> BUILDDIR
60
60
single-commit : true # Delete existing files
61
61
62
62
- name : Purge CDN cache
Original file line number Diff line number Diff line change 3
3
# You can set these variables from the command line.
4
4
PYTHON = python3
5
5
VENVDIR = .venv
6
+ # synchronise with render.yml -> deploy step
7
+ BUILDDIR = build
6
8
SPHINXBUILD = PATH=$(VENVDIR ) /bin:$$PATH sphinx-build
7
9
BUILDER = html
8
10
JOBS = 8
9
11
SOURCES =
10
- # synchronise with render.yml -> deploy step
11
- OUTPUT_DIR = build
12
12
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
13
13
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 )
16
18
17
19
# # html to render PEPs to "pep-NNNN.html" files
18
20
.PHONY : html
@@ -27,14 +29,17 @@ htmlview: html
27
29
# # dirhtml to render PEPs to "index.html" files within "pep-NNNN" directories
28
30
.PHONY : dirhtml
29
31
dirhtml : BUILDER = dirhtml
30
- dirhtml : venv
31
- $(SPHINXBUILD ) $(ALLSPHINXOPTS )
32
+ dirhtml : html
32
33
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
35
36
check-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"
38
43
39
44
# # clean to remove the venv and build files
40
45
.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
82
82
.. code-block :: shell
83
83
84
84
python build.py --check-links
85
- make check-links
85
+ make linkcheck
86
86
87
87
88
88
``build.py `` usage
Original file line number Diff line number Diff line change 6
6
python : " 3.11"
7
7
8
8
commands :
9
- - make dirhtml JOBS=$(nproc) OUTPUT_DIR =_readthedocs/html
9
+ - make dirhtml JOBS=$(nproc) BUILDDIR =_readthedocs/html
10
10
11
11
sphinx :
12
12
builder : dirhtml
You can’t perform that action at this time.
0 commit comments