mirror of
https://github.com/python/cpython.git
synced 2025-08-17 15:21:26 +00:00
[3.12] Revert "Doc: Show object descriptions in the table of contents (GH-125757)" (GH-128406) (#128414)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
84c8843490
commit
52c08ed029
3 changed files with 1 additions and 10 deletions
|
@ -89,9 +89,7 @@ needs_sphinx = '7.2.6'
|
||||||
|
|
||||||
# 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.
|
||||||
|
|
|
@ -435,6 +435,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}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
div.sphinxsidebarwrapper {
|
|
||||||
overflow-x: scroll;
|
|
||||||
}
|
|
||||||
div.sphinxsidebarwrapper li code {
|
|
||||||
overflow-wrap: normal;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue