@@ -212,8 +212,8 @@ def _check_dependencies():
212212# This is the default encoding, but it doesn't hurt to be explicit
213213source_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.
219219try :
@@ -378,7 +378,7 @@ def _check_dependencies():
378378# document class [howto/manual])
379379
380380latex_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():
508508autoclass_content = 'both'
509509
510510texinfo_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