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

This commit is contained in:
Adam Turner 2024-10-22 14:07:09 +01:00 committed by GitHub
parent 759a54d28f
commit 91ddde4af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -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}

View file

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