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.
2 parents 8400e21 + 210a225 commit 9a7afd3Copy full SHA for 9a7afd3
docs/source/conf.py
@@ -78,14 +78,13 @@
78
# The code below will cut version displayed in the dropdown like this:
79
# By default, set to "main".
80
# If it's a tag like refs/tags/v1.2.3-rc4 or refs/tags/v1.2.3, then
81
-# cut to v1.2
+# cut to 1.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:
85
if et_version_docs.startswith("refs/tags/v"):
86
version = ".".join(
87
et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2]
88
- )
89
print(f"Version: {version}")
90
html_title = " ".join((project, version, "documentation"))
91
0 commit comments