Revert "Doc: Show object descriptions in the table of contents (#125757)" (#128406)

This commit is contained in:
Hugo van Kemenade 2025-01-02 16:35:00 +02:00 committed by GitHub
parent 9ba0528537
commit c9d2bc6d7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

View File

@ -101,9 +101,7 @@
# Create table of contents entries for domain objects (e.g. functions, classes, # Create table of contents entries for domain objects (e.g. functions, classes,
# attributes, etc.). Default is True. # attributes, etc.). Default is True.
toc_object_entries = True toc_object_entries = False
# Hide parents to tidy up long entries in sidebar
toc_object_entries_show_parents = 'hide'
# Ignore any .rst files in the includes/ directory; # Ignore any .rst files in the includes/ directory;
# they're embedded in pages but not rendered as individual pages. # they're embedded in pages but not rendered as individual pages.

View File

@ -434,6 +434,5 @@ def setup(app):
app.add_directive_to_domain('py', 'awaitablemethod', PyAwaitableMethod) app.add_directive_to_domain('py', 'awaitablemethod', PyAwaitableMethod)
app.add_directive_to_domain('py', 'abstractmethod', PyAbstractMethod) app.add_directive_to_domain('py', 'abstractmethod', PyAbstractMethod)
app.add_directive('miscnews', MiscNews) app.add_directive('miscnews', MiscNews)
app.add_css_file('sidebar-wrap.css')
app.connect('env-check-consistency', patch_pairindextypes) app.connect('env-check-consistency', patch_pairindextypes)
return {'version': '1.0', 'parallel_read_safe': True} return {'version': '1.0', 'parallel_read_safe': True}

View File

@ -1,6 +0,0 @@
div.sphinxsidebarwrapper {
overflow-x: scroll;
}
div.sphinxsidebarwrapper li code {
overflow-wrap: normal;
}