@@ -212,8 +212,8 @@ def _check_dependencies():
212
212
# This is the default encoding, but it doesn't hurt to be explicit
213
213
source_encoding = "utf-8"
214
214
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'
217
217
218
218
# General substitutions.
219
219
try :
@@ -378,7 +378,7 @@ def _check_dependencies():
378
378
# document class [howto/manual])
379
379
380
380
latex_documents = [
381
- ('contents' , 'Matplotlib.tex' , 'Matplotlib' ,
381
+ (root_doc , 'Matplotlib.tex' , 'Matplotlib' ,
382
382
'John Hunter\\ and Darren Dale\\ and Eric Firing\\ and Michael Droettboom'
383
383
'\\ and and the matplotlib development team' , 'manual' ),
384
384
]
@@ -508,7 +508,7 @@ def _check_dependencies():
508
508
autoclass_content = 'both'
509
509
510
510
texinfo_documents = [
511
- ("contents" , 'matplotlib' , 'Matplotlib Documentation' ,
511
+ (root_doc , 'matplotlib' , 'Matplotlib Documentation' ,
512
512
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
513
513
'The matplotlib development team' ,
514
514
'Matplotlib' , "Python plotting package" , 'Programming' ,
0 commit comments