Skip to content

Commit

Permalink
fix(docs): Try to fix RTD build
Browse files Browse the repository at this point in the history
  • Loading branch information
elenakrittik committed Jun 14, 2023
1 parent a0b3886 commit d0b7082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit d0b7082

Please sign in to comment.