Skip to content

Commit 2d98f09

Browse files
fix: rename the extension name with no conflict (#275)
1 parent 8c04602 commit 2d98f09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ansys_sphinx_theme/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

208208
def update_footer_theme(

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/edit-this-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% if sourcename is defined and theme_use_edit_page_button==true and
22
page_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

0 commit comments

Comments
 (0)