mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Doc: Show object descriptions in the table of contents (#125757)
This commit is contained in:
parent
759a54d28f
commit
91ddde4af0
3 changed files with 9 additions and 1 deletions
|
@ -434,5 +434,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}
|
||||
|
|
6
Doc/tools/static/sidebar-wrap.css
Normal file
6
Doc/tools/static/sidebar-wrap.css
Normal file
|
@ -0,0 +1,6 @@
|
|||
div.sphinxsidebarwrapper {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
div.sphinxsidebarwrapper li code {
|
||||
overflow-wrap: normal;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue