DOC Use dev CDN url if building latest docs (#2913)

[skip ci]
This commit is contained in:
Gyeongjae Choi 2022-07-26 17:30:31 +09:00 committed by GitHub
parent 06d82f9e42
commit 047c8959f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ project = "Pyodide"
copyright = "2019-2022, Pyodide contributors and Mozilla"
pyodide_version = "0.21.0a3"
if ".dev" in pyodide_version:
if ".dev" in pyodide_version or os.environ.get("READTHEDOCS_VERSION") == "latest":
CDN_URL = "https://cdn.jsdelivr.net/pyodide/dev/full/"
else:
CDN_URL = f"https://cdn.jsdelivr.net/pyodide/v{pyodide_version}/full/"