]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Revert "Doc: Show object descriptions in the table of contents (GH-125757...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 2 Jan 2025 14:41:25 +0000 (15:41 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Jan 2025 14:41:25 +0000 (14:41 +0000)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/conf.py
Doc/tools/extensions/pyspecific.py
Doc/tools/static/sidebar-wrap.css [deleted file]

index 4e76c21fe0c670e762f386179772ccfb4187600e..4b18d02a943f62fd2e9f32bde4af91207b0d6d35 100644 (file)
@@ -89,9 +89,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.
index 615c7f1f30fc6c69a1122ecddcb0a1209e1349d5..f09574d1ad34a41b6cc2a4353f3ae15192ef70e1 100644 (file)
@@ -435,6 +435,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 (file)
index 0a80f51..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-div.sphinxsidebarwrapper {
-    overflow-x: scroll;
-}
-div.sphinxsidebarwrapper li code {
-    overflow-wrap: normal;
-}