Skip to content

Commit ed072a7

Browse files
committed
DOC: Fix toplevel LaTeX/Texinfo document
This file was removed in #21251
1 parent b7c2e55 commit ed072a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def _check_dependencies():
212212
# This is the default encoding, but it doesn't hurt to be explicit
213213
source_encoding = "utf-8"
214214

215-
# The master toctree document.
216-
master_doc = 'users/index'
215+
# The toplevel toctree document (renamed to root_doc in Sphinx 4.0)
216+
root_doc = master_doc = 'users/index'
217217

218218
# General substitutions.
219219
try:
@@ -378,7 +378,7 @@ def _check_dependencies():
378378
# document class [howto/manual])
379379

380380
latex_documents = [
381-
('contents', 'Matplotlib.tex', 'Matplotlib',
381+
(root_doc, 'Matplotlib.tex', 'Matplotlib',
382382
'John Hunter\\and Darren Dale\\and Eric Firing\\and Michael Droettboom'
383383
'\\and and the matplotlib development team', 'manual'),
384384
]
@@ -508,7 +508,7 @@ def _check_dependencies():
508508
autoclass_content = 'both'
509509

510510
texinfo_documents = [
511-
("contents", 'matplotlib', 'Matplotlib Documentation',
511+
(root_doc, 'matplotlib', 'Matplotlib Documentation',
512512
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
513513
'The matplotlib development team',
514514
'Matplotlib', "Python plotting package", 'Programming',

0 commit comments

Comments
 (0)