File tree 2 files changed +3
-3
lines changed
theme/ansys_sphinx_theme/components
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def fix_edit_html_page_context(
136
136
see https://github.com/pyvista/pyvista/pull/4113
137
137
"""
138
138
139
- def fix_edit_link_button (link : str ) -> str :
139
+ def fix_edit_link_page (link : str ) -> str :
140
140
"""Transform "edit on GitHub" links to the correct URL.
141
141
142
142
This function fixes the URL for the "edit this page" link.
@@ -202,7 +202,7 @@ def fix_edit_link_button(link: str) -> str:
202
202
else :
203
203
return link
204
204
205
- context ["fix_edit_link_button " ] = fix_edit_link_button
205
+ context ["fix_edit_link_page " ] = fix_edit_link_page
206
206
207
207
208
208
def update_footer_theme (
Original file line number Diff line number Diff line change 1
1
{% if sourcename is defined and theme_use_edit_page_button==true and
2
2
page_source_suffix %} {% set src = sourcename.split('.') %}
3
3
< div class ="tocsection editthispage ">
4
- < a href ="{{ fix_edit_link_button (get_edit_provider_and_url()[1]) }} ">
4
+ < a href ="{{ fix_edit_link_page (get_edit_provider_and_url()[1]) }} ">
5
5
< i class ="fa-solid fa-pencil "> </ i >
6
6
{% set provider = get_edit_provider_and_url()[0] %} {% block
7
7
edit_this_page_text %} {% if provider %} {% trans provider=provider %}Edit
You can’t perform that action at this time.
0 commit comments