Skip to content

Commit f116cef

Browse files
committed
Fix the "Edit on GitHub" link even for stable branches.
See https://pradyunsg.me/furo/customisation/edit-button/ Evades the (currently open) pradyunsg/furo#668. Closes: #979 Refs: pradyunsg/furo#668 Refs: readthedocs/readthedocs.org#1820
1 parent 61b31ff commit f116cef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
html_theme = "furo"
4646
html_logo = str(STATIC / "logo.svg")
4747
html_static_path = [str(STATIC)]
48-
html_theme_options = {"sidebar_hide_name": True}
48+
html_theme_options = dict(
49+
sidebar_hide_name=True,
50+
# Evade pradyunsg/furo#668
51+
source_edit_link=str(REPO / "edit/main/docs/") + "{filename}",
52+
)
4953

5054
rst_prolog = f"""
5155
.. |site| replace:: {HOMEPAGE}

0 commit comments

Comments
 (0)