From 741b28424f5e1527cdde704cf8d9beac0804a64d Mon Sep 17 00:00:00 2001 From: Chris Beaven Date: Tue, 7 May 2024 11:54:02 +1200 Subject: [PATCH] Fix readthedocs to keep the edit link for `latest` in addition to `trunk` --- docs/conf.py | 2 +- src/towncrier/newsfragments/+200d88c0.misc.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/towncrier/newsfragments/+200d88c0.misc.rst diff --git a/docs/conf.py b/docs/conf.py index 7196f550..5f41b13d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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": []} diff --git a/src/towncrier/newsfragments/+200d88c0.misc.rst b/src/towncrier/newsfragments/+200d88c0.misc.rst new file mode 100644 index 00000000..e7c7562c --- /dev/null +++ b/src/towncrier/newsfragments/+200d88c0.misc.rst @@ -0,0 +1 @@ +Fix readthedocs to keep the edit link for ``latest`` in addition to ``trunk``.