Skip to content

Commit

Permalink
Fix readthedocs to keep the edit link for latest in addition to `tr…
Browse files Browse the repository at this point in the history
…unk` (#597)

* Fix readthedocs to keep the edit link for `latest` in addition to `trunk`

* Rename news fragment
  • Loading branch information
SmileyChris authored May 7, 2024
1 parent 3d9b961 commit 272993f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
# further. For a list of options available for each theme, see the
# documentation.
#
if os.environ.get("READTHEDOCS_VERSION_NAME", "trunk") != "trunk":
if os.environ.get("READTHEDOCS_VERSION_NAME", "trunk") not in ("trunk", "latest"):
# Remove the "Edit on GitHub" link for non-trunk versions of the docs
html_theme_options = {"top_of_page_buttons": []}

Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/597.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix readthedocs to keep the edit link for ``latest`` in addition to ``trunk``.

0 comments on commit 272993f

Please sign in to comment.