diff --git a/docs/conf.py b/docs/conf.py index 0581411c9a..0a03cf5318 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -480,6 +480,7 @@ def setup(app: Sphinx) -> None: # we can't access it above since it wouldn't have run yet if _IS_READTHEDOCS: # this is the "canonical" url, which always points to stable in our case + globals()["html_baseurl"] = "https://disnake.readthedocs.io/en/stable/" if not (base_url := globals().get("html_baseurl")): raise RuntimeError("Expected `html_baseurl` to be set on readthedocs")