Skip to content

Commit 12228ce

Browse files
authored
[3.7] bpo-34293: Fix PDF documentation paper size (GH-8585) (GH-15817)
The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5. See also sphinx-doc/sphinxGH-5235. (cherry picked from commit b5381f6) Authored-by: Jean-François B <[email protected]>
1 parent 0a86da8 commit 12228ce

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
@@ -12,7 +12,11 @@ PAPER =
1212
SOURCES =
1313
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
1414

15-
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees -D latex_elements.papersize=$(PAPER) \
15+
# Internal variables.
16+
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
17+
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
18+
19+
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
1620
$(SPHINXOPTS) . build/$(BUILDER) $(SOURCES)
1721

1822
.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)