mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(docs): update for tt05 (WiP)
This commit is contained in:
+8
-2
@@ -215,8 +215,8 @@ class Project:
|
||||
def get_yaml(self):
|
||||
return self.yaml
|
||||
|
||||
def get_hugo_row(self):
|
||||
return f'| {self.index} | [{self.yaml["documentation"]["title"]}]({self.index :03}) | {self.yaml["documentation"]["author"]}|\n'
|
||||
def get_hugo_row(self) -> str:
|
||||
return f'| {self.mux_address} | [{self.yaml["documentation"]["title"]}]({self.mux_address :03}) | {self.yaml["documentation"]["author"]}|\n'
|
||||
|
||||
# docs stuff for index on README.md
|
||||
def get_index_row(self):
|
||||
@@ -275,6 +275,12 @@ class Project:
|
||||
repo = Repo(os.path.join(self.local_dir, "tt"))
|
||||
return f"{repo.active_branch.name} {repo.commit().hexsha[:8]}"
|
||||
|
||||
def get_workflow_url_when_submitted(self):
|
||||
json_file = os.path.join(self.local_dir, "commit_id.json")
|
||||
with open(json_file) as fh:
|
||||
commit_info = json.load(fh)
|
||||
return commit_info["workflow_url"]
|
||||
|
||||
def get_workflow_url(self):
|
||||
GITHUB_SERVER_URL = os.getenv("GITHUB_SERVER_URL")
|
||||
GITHUB_REPOSITORY = os.getenv("GITHUB_REPOSITORY")
|
||||
|
||||
Reference in New Issue
Block a user