https://github.com/python/cpython/commit/cc5b03f89d30db593baf881b087a8c72dd00079e
commit: cc5b03f89d30db593baf881b087a8c72dd00079e
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-01-02T14:40:19Z
summary:

[3.13] Revert "Doc: Show object descriptions in the table of contents 
(GH-125757)" (GH-128406) (#128413)

Co-authored-by: Hugo van Kemenade <[email protected]>

files:
D Doc/tools/static/sidebar-wrap.css
M Doc/conf.py
M Doc/tools/extensions/pyspecific.py

diff --git a/Doc/conf.py b/Doc/conf.py
index 73d7d5db26ff7b..829124c86c8b19 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -97,9 +97,7 @@
 
 # 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 1ad10d4bef6f36..014c7c279e90b4 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 0a80f516f28349..00000000000000
--- 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;
-}

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to