Skip to content

Commit

Permalink
fix issue with the version not matching
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Sep 12, 2024
1 parent f917974 commit 5770e59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@
datetime.fromisoformat(r.json()["published_at"]).date().strftime("%b %d, %Y")
)
release_url = r.json()["html_url"]
release_version = r.json()["tag_name"].strip("v")
else:
raise Exception(f"Error: HTTP response {r.status_code}")


rst_epilog = f"""
.. role:: raw-html(raw)
:format: html
.. |release_announcement| replace:: :raw-html:`<a href={release_url}><button type="button" class="version-button">XGI {version} released! {release_date}</button></a>`
.. |release_announcement| replace:: :raw-html:`<a href={release_url}><button type="button" class="version-button">XGI {release_version} released! {release_date}</button></a>`
"""

today = release_date
Expand Down

0 comments on commit 5770e59

Please sign in to comment.