mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(docs): add new datasheet generation method (#123)
(cherry picked from commit c36badfb60)
This commit is contained in:
committed by
Uri Shaked
parent
bef483ab40
commit
6e576d6de6
+14
-5
@@ -265,14 +265,23 @@ if __name__ == "__main__":
|
||||
"--dump-json", help="dump json of all project data to given file"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dump-markdown", help="dump markdown of all project data to given file"
|
||||
"--metrics", help="print some project metrics", action="store_const", const=True
|
||||
)
|
||||
parser.add_argument("--dump-pdf", help="create pdf from the markdown")
|
||||
parser.add_argument(
|
||||
"--build-datasheet",
|
||||
help="build datasheet using the typst template",
|
||||
action="store_const",
|
||||
const=True,
|
||||
)
|
||||
parser.add_argument("--doc-tapeout-index", help="path to json tapeout index")
|
||||
parser.add_argument(
|
||||
"--build-hugo-content", help="directory to where to build hugo content"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--metrics", help="print some project metrics", action="store_const", const=True
|
||||
"--template-version",
|
||||
help="set typst template version (default 1.0.0)",
|
||||
default="1.0.0",
|
||||
nargs="?",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -327,9 +336,9 @@ if __name__ == "__main__":
|
||||
if args.update_image:
|
||||
docs.update_image()
|
||||
|
||||
if args.dump_markdown:
|
||||
if args.build_datasheet:
|
||||
shuttle.configure_mux()
|
||||
docs.write_datasheet(args.dump_markdown, args.dump_pdf)
|
||||
docs.build_datasheet(args.template_version, args.doc_tapeout_index)
|
||||
|
||||
if args.build_hugo_content:
|
||||
shuttle.configure_mux()
|
||||
|
||||
Reference in New Issue
Block a user