Skip to content

Commit

Permalink
Fix the "Edit on GitHub" link even for stable branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Mar 13, 2024
1 parent 61b31ff commit f116cef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
html_theme = "furo"
html_logo = str(STATIC / "logo.svg")
html_static_path = [str(STATIC)]
html_theme_options = {"sidebar_hide_name": True}
html_theme_options = dict(
sidebar_hide_name=True,
# Evade pradyunsg/furo#668
source_edit_link=str(REPO / "edit/main/docs/") + "{filename}",
)

rst_prolog = f"""
.. |site| replace:: {HOMEPAGE}
Expand Down

0 comments on commit f116cef

Please sign in to comment.