From 13d72be15828fe5225c5f7773aa0683564663d97 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 24 Apr 2024 22:05:01 -0700 Subject: [PATCH] Enable doc job to run on -rc tags. (#3345) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/3345 Reviewed By: dbort Differential Revision: D56557091 Pulled By: svekars fbshipit-source-id: 4300ca86d01ec110fc6934588cd691c12661a730 --- docs/source/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 2f72a01d22d..423f0618f68 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -86,6 +86,8 @@ version = ".".join( et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2] ) + elif et_version_docs.startswith("refs/heads/release/"): + version = et_version_docs.split("/")[-1] print(f"Version: {version}") html_title = " ".join((project, version, "documentation"))