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-05 13:16:59 +00:00
parent 24de353b9d
commit 6994c804d7
37 changed files with 2792 additions and 141 deletions
+32
View File
@@ -0,0 +1,32 @@
#import "/tt/docs/typst/src/tt.typ" as tt
#show: tt.datasheet.datasheet.with(
shuttle_id: "{{&shuttle_id_upper}}",
shuttle_name: "{{&shuttle_name}}",
repo_link: "{{&repo_link}}",
theme: "bold",
{{#if_theme_override_colour}}
theme_override_colour: {{&theme_override_colour}},
{{/if_theme_override_colour}}
projects: include "datasheet_manifest.typ",
{{#if_pinout}}
show_pinouts: "{{&pinout}}",
{{/if_pinout}}
{{#if_chip_viewer}}
chip_viewer_link: "https://tinytapeout.com/decap/{{shuttle_id}}",
{{/if_chip_viewer}}
link_disable_colour: {{link_disable_colour}},
{{#if_link_override_colour}}
link_override_colour: {{&link_override_colour}},
{{/if_link_override_colour}}
qrcode_follows_theme: {{qrcode_follows_theme}},
)
{{&datasheet_body}}