diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2025-01-02 14:35:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 14:35:00 (GMT) |
commit | c9d2bc6d7f6d74e0539afb0f7066997ae736dfc8 (patch) | |
tree | 5544b6b16e1f6b92f4845676a381425c671d57f4 | |
parent | 9ba0528537b2befcd02a7fdc5904e0cfbc33a887 (diff) | |
download | cpython-c9d2bc6d7f6d74e0539afb0f7066997ae736dfc8.zip cpython-c9d2bc6d7f6d74e0539afb0f7066997ae736dfc8.tar.gz cpython-c9d2bc6d7f6d74e0539afb0f7066997ae736dfc8.tar.bz2 |
Revert "Doc: Show object descriptions in the table of contents (#125757)" (#128406)
-rw-r--r-- | Doc/conf.py | 4 | ||||
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 1 | ||||
-rw-r--r-- | Doc/tools/static/sidebar-wrap.css | 6 |
3 files changed, 1 insertions, 10 deletions
diff --git a/Doc/conf.py b/Doc/conf.py index 9cde394..ae08c7f 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -101,9 +101,7 @@ needs_sphinx = '7.2.6' # Create table of contents entries for domain objects (e.g. functions, classes, # attributes, etc.). Default is True. -toc_object_entries = True -# Hide parents to tidy up long entries in sidebar -toc_object_entries_show_parents = 'hide' +toc_object_entries = False # Ignore any .rst files in the includes/ directory; # they're embedded in pages but not rendered as individual pages. diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index f4df7ec..bcb8a42 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -434,6 +434,5 @@ def setup(app): app.add_directive_to_domain('py', 'awaitablemethod', PyAwaitableMethod) app.add_directive_to_domain('py', 'abstractmethod', PyAbstractMethod) app.add_directive('miscnews', MiscNews) - app.add_css_file('sidebar-wrap.css') app.connect('env-check-consistency', patch_pairindextypes) return {'version': '1.0', 'parallel_read_safe': True} diff --git a/Doc/tools/static/sidebar-wrap.css b/Doc/tools/static/sidebar-wrap.css deleted file mode 100644 index 0a80f51..0000000 --- a/Doc/tools/static/sidebar-wrap.css +++ /dev/null @@ -1,6 +0,0 @@ -div.sphinxsidebarwrapper { - overflow-x: scroll; -} -div.sphinxsidebarwrapper li code { - overflow-wrap: normal; -} |