mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5205 from anntzer/Table-Of-Contents-capitalization
Capitalization: "Table Of Contents" -> "Table of Contents".
This commit is contained in:
commit
b7294909d6
@ -43,7 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
{%- block sidebartoc %}
|
{%- block sidebartoc %}
|
||||||
<h3>{{ _('Table Of Contents') }}</h3>
|
<h3>{{ _('Table of Contents') }}</h3>
|
||||||
{{ toctree() }}
|
{{ toctree() }}
|
||||||
{%- endblock %}
|
{%- endblock %}
|
||||||
{%- block sidebarsearch %}
|
{%- block sidebarsearch %}
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
|
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
|
||||||
:license: BSD, see LICENSE for details.
|
:license: BSD, see LICENSE for details.
|
||||||
#}
|
#}
|
||||||
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
|
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table of Contents') }}</a></h3>
|
||||||
{{ toctree() }}
|
{{ toctree() }}
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
:license: BSD, see LICENSE for details.
|
:license: BSD, see LICENSE for details.
|
||||||
#}
|
#}
|
||||||
{%- if display_toc %}
|
{%- if display_toc %}
|
||||||
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
|
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table of Contents') }}</a></h3>
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
{#{%- if display_toc %}
|
{#{%- if display_toc %}
|
||||||
<div id="toc">
|
<div id="toc">
|
||||||
<h3>{{ _('Table Of Contents') }}</h3>
|
<h3>{{ _('Table of Contents') }}</h3>
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}#}
|
{%- endif %}#}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<div id="contentwrapper">
|
<div id="contentwrapper">
|
||||||
{%- if display_toc %}
|
{%- if display_toc %}
|
||||||
<div id="toc" role="navigation" aria-label="table of contents navigation">
|
<div id="toc" role="navigation" aria-label="table of contents navigation">
|
||||||
<h3>{{ _('Table Of Contents') }}</h3>
|
<h3>{{ _('Table of Contents') }}</h3>
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -124,7 +124,7 @@ def test_theme_sidebars(app, status, warning):
|
|||||||
|
|
||||||
# test-theme specifies globaltoc and searchbox as default sidebars
|
# test-theme specifies globaltoc and searchbox as default sidebars
|
||||||
result = (app.outdir / 'index.html').text(encoding='utf8')
|
result = (app.outdir / 'index.html').text(encoding='utf8')
|
||||||
assert '<h3><a href="#">Table Of Contents</a></h3>' in result
|
assert '<h3><a href="#">Table of Contents</a></h3>' in result
|
||||||
assert '<h3>Related Topics</h3>' not in result
|
assert '<h3>Related Topics</h3>' not in result
|
||||||
assert '<h3>This Page</h3>' not in result
|
assert '<h3>This Page</h3>' not in result
|
||||||
assert '<h3>Quick search</h3>' in result
|
assert '<h3>Quick search</h3>' in result
|
||||||
|
Loading…
Reference in New Issue
Block a user