Skip to content

Commit

Permalink
Output the last updated date in the footer as per request by Diana He…
Browse files Browse the repository at this point in the history
…lmuth
  • Loading branch information
dimitri-tenstorrent committed Oct 11, 2024
1 parent 364d9b7 commit 1f41f95
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")

Expand Down
1 change: 1 addition & 0 deletions core/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pybuda/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions shared/example-conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions tt-metalium/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions ttnn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1f41f95

Please sign in to comment.