Skip to content

Commit

Permalink
Fixed broken GitHub links
Browse files Browse the repository at this point in the history
Fixes #35.
  • Loading branch information
agronholm committed Oct 17, 2023
1 parent 5e3945e commit fc15eb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
html_theme = "sphinx_rtd_theme"
htmlhelp_basename = project.replace("-", "") + "doc"

branch_or_release = release if ".post" not in release else "master"
extlinks = {
"github": (
f"https://github.com/asphalt-framework/{project}/tree/{release}/%s",
f"https://github.com/asphalt-framework/{project}/tree/{branch_or_release}/%s",
None,
)
}
Expand Down

0 comments on commit fc15eb0

Please sign in to comment.