]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert "Doc: Show object descriptions in the table of contents (#125757)" (#128406)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thu, 2 Jan 2025 14:35:00 +0000 (16:35 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Jan 2025 14:35:00 +0000 (14:35 +0000)
Doc/conf.py
Doc/tools/extensions/pyspecific.py
Doc/tools/static/sidebar-wrap.css [deleted file]

index 9cde394cbaed69c8826d61bd95b0e17d80f8bca2..ae08c7fa2880804750c49b3aba2b26058026d134 100644 (file)
@@ -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.
index f4df7ec0839339ecf9ad48c778eb1f25c8a6643f..bcb8a421e32d09e12b93af3ac06e162901418692 100644 (file)
@@ -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 (file)
index 0a80f51..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-div.sphinxsidebarwrapper {
-    overflow-x: scroll;
-}
-div.sphinxsidebarwrapper li code {
-    overflow-wrap: normal;
-}