feat(datasheet): add typst datasheet flow

This is a squash of 5 commits in order to add the new datasheet flow.

fix(datasheet): ensure datasheet can use images properly

fix(datasheet): white page when funding was not specified

This was caused by creating a page before first checking whether there was any content for that page beforehand, so it would result in a rogue white page with no content.

fix(datasheet): missing analog pin tables

fix(datasheet): tweak pandoc settings

Switching from `gfm` to `markdown` should enable more formatting options. The extensions have been configured to be similar to `gfm` but provide some additional things, like `line_blocks` and `lists_without_preceding_blankline`s.
This commit is contained in:
Kristaps Jurkans
2025-12-02 16:38:00 +00:00
parent f3b7f15acd
commit 793d8ce282
37 changed files with 2682 additions and 131 deletions
+8 -2
View File
@@ -80,10 +80,16 @@ if __name__ == "__main__":
)
parser.add_argument(
"--create-pdf",
help="create a single page PDF",
help="create a datasheet for the current project",
action="store_const",
const=True,
)
parser.add_argument(
"--template-version",
help="set typst template version (default 1.0.0)",
default="1.0.0",
nargs="?",
)
parser.add_argument(
"--create-svg",
help="create a svg of the GDS layout",
@@ -165,7 +171,7 @@ if __name__ == "__main__":
project.harden()
if args.create_pdf:
project.create_pdf()
project.create_project_datasheet(args.template_version)
if args.create_png:
project.create_png()