Skip to content

Commit f85c2e0

Browse files
committed
Build only the main PDF on Read the Docs.
It turns out the build failure with multiple latex_documents was not caused by the old Sphinx version but is a property of the RTD build process (readthedocs/readthedocs.org#8612).
1 parent 2ab6d7c commit f85c2e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# import sys
2121
# sys.path.insert(0, os.path.abspath('.'))
2222

23+
import os
2324

2425
# -- General configuration ------------------------------------------------
2526

@@ -152,6 +153,11 @@
152153
('handout/index', 'Handout.tex', 'Handout', 'Christian Walther', 'howto'),
153154
]
154155

156+
# Read the Docs does not support building multiple documents
157+
# (https://github.com/readthedocs/readthedocs.org/issues/8612)
158+
if 'READTHEDOCS' in os.environ:
159+
latex_documents = latex_documents[:1]
160+
155161
# suppress the python module index that would only list "pew"
156162
latex_domain_indices = False
157163

0 commit comments

Comments
 (0)