-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add header * fix nav landmarks * only one main * label indices nav * few landmarks * unique id todos * fix test fixtures * fix translations * translations? * make version warning a landmark * revert translation changes * revert changes to noxfile.py * update tests to reflect translation reversal * add TODO comment to make string translatable
- Loading branch information
Showing
4 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/indices.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/page-toc.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{# Displays the current page's Table of Contents. #} | ||
{% set page_toc = generate_toc_html() %} | ||
{%- if page_toc | length >= 1 %} | ||
<div class="page-toc tocsection onthispage"> | ||
{%- set page_navigation_heading_id = unique_html_id("pst-page-navigation-heading") -%} | ||
<div | ||
id="{{ page_navigation_heading_id }}" | ||
class="page-toc tocsection onthispage"> | ||
<i class="fa-solid fa-list"></i> {{ _("On this page") }} | ||
</div> | ||
<nav class="bd-toc-nav page-toc"> | ||
<nav class="bd-toc-nav page-toc" aria-labelledby="{{ page_navigation_heading_id }}"> | ||
{{ page_toc }} | ||
</nav> | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters