3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 21:03:40 +00:00

Docs: Don't force READTHEDOCS on local

readthedocs detection should only trigger on actual readthedocs builds.
This commit is contained in:
Krystine Sherwin 2025-03-21 10:26:12 +13:00
parent 024bfcdc53
commit 598b41406c
No known key found for this signature in database

View file

@ -18,13 +18,14 @@ html_theme_options: dict[str] = {
} }
# try to fix the readthedocs detection # try to fix the readthedocs detection
html_context: dict[str] = { if os.getenv("READTHEDOCS"):
"READTHEDOCS": True, html_context: dict[str] = {
"display_github": True, "READTHEDOCS": True,
"github_user": "YosysHQ", "display_github": True,
"github_repo": "yosys", "github_user": "YosysHQ",
"slug": "yosys", "github_repo": "yosys",
} "slug": "yosys",
}
# override source_branch if not main # override source_branch if not main
git_slug = os.getenv("READTHEDOCS_VERSION_NAME") git_slug = os.getenv("READTHEDOCS_VERSION_NAME")