File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
theme/ansys_sphinx_theme/components Expand file tree Collapse file tree 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(
136136 see https://github.com/pyvista/pyvista/pull/4113
137137 """
138138
139- def fix_edit_link_button (link : str ) -> str :
139+ def fix_edit_link_page (link : str ) -> str :
140140 """Transform "edit on GitHub" links to the correct URL.
141141
142142 This function fixes the URL for the "edit this page" link.
@@ -202,7 +202,7 @@ def fix_edit_link_button(link: str) -> str:
202202 else :
203203 return link
204204
205- context ["fix_edit_link_button " ] = fix_edit_link_button
205+ context ["fix_edit_link_page " ] = fix_edit_link_page
206206
207207
208208def update_footer_theme (
Original file line number Diff line number Diff line change 11{% if sourcename is defined and theme_use_edit_page_button==true and
22page_source_suffix %} {% set src = sourcename.split('.') %}
33< 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]) }} ">
55 < i class ="fa-solid fa-pencil "> </ i >
66 {% set provider = get_edit_provider_and_url()[0] %} {% block
77 edit_this_page_text %} {% if provider %} {% trans provider=provider %}Edit
You can’t perform that action at this time.
0 commit comments