mirror of https://github.com/python/cpython
[3.13] Doc: Show object descriptions in the table of contents (GH-125757) (#125840)
(cherry picked from commit 91ddde4af0
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
1fe63b15eb
commit
22ae72b88f
|
@ -94,7 +94,8 @@ 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 = False
|
||||
toc_object_entries = True
|
||||
toc_object_entries_show_parents = 'hide'
|
||||
|
||||
# Ignore any .rst files in the includes/ directory;
|
||||
# they're embedded in pages but not rendered individually.
|
||||
|
|
|
@ -411,5 +411,6 @@ 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}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
div.sphinxsidebarwrapper {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
div.sphinxsidebarwrapper li code {
|
||||
overflow-wrap: normal;
|
||||
}
|
Loading…
Reference in New Issue