From 2d16471900a53e31041608c6433544d8883754c0 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 10 Jun 2022 01:07:56 +0200 Subject: [PATCH] Update conf.py --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5328f0c527..f1bed25767 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -100,7 +100,7 @@ release = version # This assumes a tag is available for final releases -branch = "master" if "a" in version or "b" in version else f"v{version}" +branch = "master" if "a" in version or "b" in version or "rc" in version else f"v{version}" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -174,7 +174,7 @@ "discord": "https://pycord.dev/discord", "issues": "https://github.com/Pycord-Development/pycord/issues", "discussions": "https://github.com/Pycord-Development/pycord/discussions", - "examples": f"https://github.com/Pycord-Development/pycord/tree/master/examples", + "examples": f"https://github.com/Pycord-Development/pycord/tree/{branch}/examples", "guide": "https://guide.pycord.dev/", }