From cbcb9e9fa40fc0dffb49021f951a7ca50c424a8f Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 17 Sep 2021 09:24:14 -0400 Subject: [PATCH] Backport PR #21104: Remove the index and module index pages --- doc/conf.py | 9 ++++++--- doc/contents.rst | 2 -- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 77b879d6f371..8c010bd71cba 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -354,9 +354,12 @@ def _check_dependencies(): # '**': ['localtoc.html', 'pagesource.html'] } -# If false, no module index is generated. -# html_use_modindex = True -html_domain_indices = ["py-modindex"] +# If true, add an index to the HTML documents. +html_use_index = False + +# If true, generate domain-specific indices in addition to the general index. +# For e.g. the Python domain, this is the global module index. +html_domain_index = False # If true, the reST sources are included in the HTML build as _sources/. # html_copy_source = True diff --git a/doc/contents.rst b/doc/contents.rst index f9d10936c7fc..4f070951d9e7 100644 --- a/doc/contents.rst +++ b/doc/contents.rst @@ -22,6 +22,4 @@ Contents .. only:: html - * :ref:`genindex` - * :ref:`modindex` * :ref:`search`