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/597.misc.rst b/src/towncrier/newsfragments/597.misc.rst new file mode 100644 index 00000000..e7c7562c --- /dev/null +++ b/src/towncrier/newsfragments/597.misc.rst @@ -0,0 +1 @@ +Fix readthedocs to keep the edit link for ``latest`` in addition to ``trunk``.