diff options
-rw-r--r-- | Doc/Makefile | 6 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Documentation/2018-07-31-15-38-26.bpo-34293.yHupAL.rst | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index 3bcd9f2..f06689f 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 \ diff --git a/Misc/NEWS.d/next/Documentation/2018-07-31-15-38-26.bpo-34293.yHupAL.rst b/Misc/NEWS.d/next/Documentation/2018-07-31-15-38-26.bpo-34293.yHupAL.rst new file mode 100644 index 0000000..912a3ad --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2018-07-31-15-38-26.bpo-34293.yHupAL.rst @@ -0,0 +1 @@ +Fix the Doc/Makefile regarding PAPER environment variable and PDF builds |