Merge pull request #5205 from anntzer/Table-Of-Contents-capitalization

Capitalization: "Table Of Contents" -> "Table of Contents".
This commit is contained in:
Takeshi KOMIYA 2018-07-22 21:11:43 +09:00 committed by GitHub
commit b7294909d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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