We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9209e29 commit 8400e21Copy full SHA for 8400e21
docs/source/conf.py
@@ -81,11 +81,12 @@
81
# cut to v1.2
82
# the version varible is used in layout.html: https://github.com/pytorch/executorch/blob/main/docs/source/_templates/layout.html#L29
83
version = release = "main"
84
-if et_version_docs.startswith("refs/tags/v"):
85
- version = ".".join(
86
- et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2]
87
- )
88
- print(f"Version: {version}")
+if et_version_docs:
+ if et_version_docs.startswith("refs/tags/v"):
+ version = ".".join(
+ et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2]
+ )
89
+print(f"Version: {version}")
90
html_title = " ".join((project, version, "documentation"))
91
92
breathe_projects = {"ExecuTorch": "../build/xml/"}
0 commit comments