summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2019-09-09 22:11:23 (GMT)
committerGitHub <noreply@github.com>2019-09-09 22:11:23 (GMT)
commit99df5e837334b62c29c979bb0806f525778a4f3e (patch)
tree1a49ca41c2c01047a14989e75495d681cfd8cdb5 /Doc/Makefile
parentc1c04cbc24c11cd7a47579af3faffee05a16acd7 (diff)
downloadcpython-99df5e837334b62c29c979bb0806f525778a4f3e.zip
cpython-99df5e837334b62c29c979bb0806f525778a4f3e.tar.gz
cpython-99df5e837334b62c29c979bb0806f525778a4f3e.tar.bz2
[3.8] bpo-34293: Fix PDF documentation paper size (GH-8585) (GH-15816)
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 b5381f669718aa19690f42f3b8bd88f03045b9d2) Authored-by: Jean-François B <jfbu@free.fr>
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 6f86728..05eeab9 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -13,7 +13,11 @@ SOURCES =
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
SPHINXERRORHANDLING = -W
-ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees -D latex_elements.papersize=$(PAPER) \
+# Internal variables.
+PAPEROPT_a4 = -D latex_elements.papersize=a4paper
+PAPEROPT_letter = -D latex_elements.papersize=letterpaper
+
+ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
.PHONY: help build html htmlhelp latex text changes linkcheck \