mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
docs: Fix TOC text and put them in a div
This allows us to flex them together, so now you get one column on the left with the title "Documents" and one on the right saying "Sections" on narrow screens. On wide screens it doesn't say "Table Of Contents" twice. This should make it clearer
This commit is contained in:
parent
3d180b7c50
commit
ca3d226659
2 changed files with 26 additions and 0 deletions
13
doc_src/python_docs_theme/globaltoc.html
Normal file
13
doc_src/python_docs_theme/globaltoc.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{#
|
||||
basic/globaltoc.html
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sphinx sidebar template: global table of contents.
|
||||
|
||||
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
||||
:license: BSD, see LICENSE for details.
|
||||
#}
|
||||
<div>
|
||||
<h3><a href="{{ pathto(master_doc)|e }}">{{ _('Documents') }}</a></h3>
|
||||
{{ toctree(includehidden=theme_globaltoc_includehidden, collapse=theme_globaltoc_collapse, maxdepth=theme_globaltoc_maxdepth) }}
|
||||
</div>
|
13
doc_src/python_docs_theme/localtoc.html
Normal file
13
doc_src/python_docs_theme/localtoc.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{#
|
||||
basic/localtoc.html
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sphinx sidebar template: local table of contents.
|
||||
|
||||
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
||||
:license: BSD, see LICENSE for details.
|
||||
#}
|
||||
<div>
|
||||
<h4><a href="{{ pathto(master_doc)|e }}">{{ _('Sections') }}</a></h4>
|
||||
{{ toc }}
|
||||
</div>
|
Loading…
Reference in a new issue