Skip to content

Commit

Permalink
Merge pull request #632 from dstl/breadcrumbs
Browse files Browse the repository at this point in the history
Fix breadcrumbs in documentation
  • Loading branch information
sdhiscocks authored May 9, 2022
2 parents 8772a08 + 44b8a56 commit 5c22594
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/_templates/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{% set pagename = pagename.replace("auto_", "../") %}
{% if pagename.endswith("/index") %}
{% set pagename = pagename.replace("/index", "/README") %}
{% set suffix = ".rst" %}
{% set page_source_suffix = ".rst" %}
{% else %}
{% set suffix = ".py" %}
{% set page_source_suffix = ".py" %}
{% endif %}
{% endif %}
<li class="wy-breadcrumbs-aside">
<a href="https://{{ github_host|default("github.com") }}/{{ github_user|default("dstl") }}/{{ github_repo|default("Stone-Soup") }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ github_version|default("main") }}{{ conf_py_path|default("/docs/source/") }}{{ pagename }}{{ suffix }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
<a href="https://{{ github_host|default("github.com") }}/{{ github_user|default("dstl") }}/{{ github_repo|default("Stone-Soup") }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ github_version|default("main") }}{{ conf_py_path|default("/docs/source/") }}{{ pagename }}{{ page_source_suffix }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
</li>
{% endblock %}

0 comments on commit 5c22594

Please sign in to comment.