File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ SOURCES =
13
13
DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py)
14
14
SPHINXERRORHANDLING = -W
15
15
16
- ALLSPHINXOPTS = -b $(BUILDER ) -d build/doctrees -D latex_elements.papersize=$(PAPER ) \
16
+ # Internal variables.
17
+ PAPEROPT_a4 = -D latex_elements.papersize=a4paper
18
+ PAPEROPT_letter = -D latex_elements.papersize=letterpaper
19
+
20
+ ALLSPHINXOPTS = -b $(BUILDER ) -d build/doctrees $(PAPEROPT_$(PAPER ) ) \
17
21
$(SPHINXOPTS ) $(SPHINXERRORHANDLING ) . build/$(BUILDER ) $(SOURCES )
18
22
19
23
.PHONY : help build html htmlhelp latex text changes linkcheck \
Original file line number Diff line number Diff line change
1
+ Fix the Doc/Makefile regarding PAPER environment variable and PDF builds
You can’t perform that action at this time.
0 commit comments