Skip to content

Commit b5381f6

Browse files
jfbuzware
authored andcommitted
bpo-34293: Fix PDF documentation paper size (GH-8585)
The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5. See also sphinx-doc/sphinx#5235
1 parent 55d12ce commit b5381f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Doc/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ SOURCES =
1313
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
1414
SPHINXERRORHANDLING = -W
1515

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)) \
1721
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
1822

1923
.PHONY: help build html htmlhelp latex text changes linkcheck \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the Doc/Makefile regarding PAPER environment variable and PDF builds

0 commit comments

Comments
 (0)