diff --git a/build_docs.py b/build_docs.py index 1f04bad76..59ad07090 100644 --- a/build_docs.py +++ b/build_docs.py @@ -12,8 +12,7 @@ def build_doc(project, version, additional_cmd): subprocess.run(f"git checkout {project}_{version}", shell=True) subprocess.run("git checkout main -- versions.yml", shell=True) - subprocess.run("git checkout main -- tt-metalium/conf.py", shell=True) - subprocess.run("git checkout main -- ttnn/conf.py", shell=True) + subprocess.run("git checkout main -- */conf.py", shell=True) version_no_v = version.replace("v", "") diff --git a/core/conf.py b/core/conf.py index cdffa307e..c3385e70a 100644 --- a/core/conf.py +++ b/core/conf.py @@ -27,6 +27,7 @@ html_logo = "../shared/images/tt_logo.svg" html_favicon = "../shared/images/favicon.png" html_static_path = ['../shared/_static'] +html_last_updated_fmt = "%b %d, %Y" html_context = { "versions": None, # Do not render versions diff --git a/pybuda/conf.py b/pybuda/conf.py index 6609c3501..a0fad4fba 100644 --- a/pybuda/conf.py +++ b/pybuda/conf.py @@ -28,6 +28,7 @@ html_logo = "../shared/images/tt_logo.svg" html_favicon = "../shared/images/favicon.png" html_static_path = ['../shared/_static'] +html_last_updated_fmt = "%b %d, %Y" with open("../versions.yml", "r") as yaml_file: versions = yaml.safe_load(yaml_file)["pybuda"] diff --git a/shared/example-conf.py b/shared/example-conf.py index 7f8ff0569..749a06045 100644 --- a/shared/example-conf.py +++ b/shared/example-conf.py @@ -19,6 +19,7 @@ html_logo = "../shared/images/tt_logo.svg" html_favicon = "../shared/images/favicon.png" html_static_path = ['../shared/_static'] +html_last_updated_fmt = "%b %d, %Y" html_context = { "logo_link_url": os.environ.get("homepage") diff --git a/tt-metalium/conf.py b/tt-metalium/conf.py index f3ba6f991..8aa7dace2 100644 --- a/tt-metalium/conf.py +++ b/tt-metalium/conf.py @@ -82,6 +82,7 @@ html_favicon = "../shared/images/favicon.png" html_static_path = ['../shared/_static'] templates_path = ["../shared/_templates"] +html_last_updated_fmt = "%b %d, %Y" import yaml with open("../versions.yml", "r") as yaml_file: diff --git a/ttnn/conf.py b/ttnn/conf.py index a5e8a94b8..e395a8279 100644 --- a/ttnn/conf.py +++ b/ttnn/conf.py @@ -83,6 +83,7 @@ html_favicon = "../shared/images/favicon.png" html_static_path = ['../shared/_static'] templates_path = ['../shared/_templates'] +html_last_updated_fmt = "%b %d, %Y" import yaml