mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(datasheet): use mustache for shuttle_index
This commit is contained in:
+8
-5
@@ -24,13 +24,16 @@ class Docs:
|
||||
def build_index(self, filename: str = "shuttle_index.md"):
|
||||
logging.info(f"building {filename}")
|
||||
repo = git.Repo(".")
|
||||
readme = self.load_doc_template("shuttle_index_header.md")
|
||||
readme = self.load_doc_template("shuttle_index_header.md.mustache")
|
||||
with open(filename, "w") as fh:
|
||||
fh.write(
|
||||
readme.format(
|
||||
name=self.config["name"],
|
||||
git_repo=get_first_remote(repo),
|
||||
git_commit=repo.head.commit.hexsha,
|
||||
chevron.render(
|
||||
readme,
|
||||
{
|
||||
"name": self.config["name"],
|
||||
"git_repo": get_first_remote(repo),
|
||||
"git_commit": repo.head.commit.hexsha,
|
||||
},
|
||||
)
|
||||
)
|
||||
fh.write("| Address | Author | Title | Type | Git Repo |\n")
|
||||
|
||||
Reference in New Issue
Block a user