Skip to content

Commit

Permalink
Standardize ID plurality
Browse files Browse the repository at this point in the history
  • Loading branch information
jonels-msft committed Jun 21, 2021
1 parent e558112 commit bb7ecf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<h3 class="label" id="versions-versions">{{ _('Versions') }}</h3>
<h3 class="label" id="version-versions">{{ _('Versions') }}</h3>
<ul aria-labeledby="version-versions">
{%- if test_versions %}
{%- for version in test_versions %}
Expand All @@ -30,22 +30,22 @@ <h3 class="label" id="versions-versions">{{ _('Versions') }}</h3>
{%- endif %}
</ul>

<h3 class="label" id="versions-downloads">{{ _('Downloads') }}</h3>
<ul aria-labeledby="versions-downloads">
<h3 class="label" id="version-downloads">{{ _('Downloads') }}</h3>
<ul aria-labeledby="version-downloads">
<li><a href="#">PDF</a></li>
<li><a href="#">ePub</a></li>
<li><a href="#">HTML</a></li>
</ul>

{#- Translators: The phrase "Read the Docs" is not translated #}
<h3 class="label" id="versions-rtd-proj">{{ _('On Read the Docs') }}</h3>
<ul aria-labeledby="versions-rtd-proj">
<h3 class="label" id="version-rtd-proj">{{ _('On Read the Docs') }}</h3>
<ul aria-labeledby="version-rtd-proj">
<li><a href="#">{{ _('Project Home') }}</a></li>
<li><a href="#">{{ _('Builds') }}</a></li>
</ul>

<h3 class="label" id="versions-debug">Debug</h3>
<ul aria-labeledby="versions-debug">
<h3 class="label" id="version-debug">Debug</h3>
<ul aria-labeledby="version-debug">
<li><a href="#" data-toggle="rst-debug-badge">Swap badge position</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions sphinx_rtd_theme/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<h3 class="label" id="versions-versions">{{ _('Versions') }}</h3>
<h3 class="label" id="version-versions">{{ _('Versions') }}</h3>
<ul aria-labeledby="version-versions">
{% for slug, url in versions %}
<li><a href="{{ url }}">{{ slug }}</a></li>
Expand All @@ -21,8 +21,8 @@ <h3 class="label" id="version-downloads">{{ _('Downloads') }}</h3>
{% endfor %}
</ul>

<h3 class="label" id="versions-rtd-proj">{{ _('On Read the Docs') }}</h3>
<ul aria-labeledby="versions-rtd-proj">
<h3 class="label" id="version-rtd-proj">{{ _('On Read the Docs') }}</h3>
<ul aria-labeledby="version-rtd-proj">
{# Translators: The phrase "Read the Docs" is not translated #}
<li><a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">{{ _('Project Home') }}</a></li>
<li><a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">{{ _('Builds') }}</a></li>
Expand Down

0 comments on commit bb7ecf4

Please sign in to comment.