Skip to content

Commit 93e75ca

Browse files
authored
Fix broken 'Improve this page' links using sphinx variable page_source_suffix (#1969)
1 parent 9802909 commit 93e75ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/_templates/breadcrumbs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block breadcrumbs_aside %}
66
<li class="source-link">
77
{% if hasdoc(pagename) %}
8-
{% if pagename.startswith("api/generated") or suffix == ".ipynb" %}
8+
{% if pagename.startswith("api/generated") or page_source_suffix == ".ipynb" %}
99
{% set title = "Suggested improvement for " + pagename %}
1010
{% set body = "Please describe what could be improved about this page or the typo/mistake that you found:" %}
1111
<a href="https://github.com/{{ github_repo }}/issues/new?title={{ title|urlencode }}&body={{ body|urlencode }}"
@@ -21,7 +21,7 @@
2121
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ example_script }}"
2222
class="fa fa-github"> Improve this page</a>
2323
{% else %}
24-
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ pagename }}{{ suffix }}"
24+
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ pagename }}{{ page_source_suffix }}"
2525
class="fa fa-github"> Improve this page</a>
2626
{% endif %}
2727
{% endif %}

0 commit comments

Comments
 (0)