mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
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:
@@ -0,0 +1,45 @@
|
||||
#import "/tt/docs/typst/src/tt.typ" as tt
|
||||
#let horizontalrule = tt.lib.horizontalrule()
|
||||
#let blockquote = tt.lib.blockquote
|
||||
|
||||
#show: tt.datasheet.project.with(
|
||||
title: "{{&project_title}}",
|
||||
author: {{&project_author}},
|
||||
repo_link: "{{project_repo_link}}",
|
||||
description: "{{&project_description}}",
|
||||
address: "{{&project_address}}",
|
||||
clock: "{{project_clock}}",
|
||||
type: "{{project_type}}",
|
||||
{{#is_wokwi}}
|
||||
wokwi_id: "{{project_wokwi_id}}",
|
||||
{{/is_wokwi}}
|
||||
{{#is_dangerous}}
|
||||
danger_level: "{{project_danger_level}}",
|
||||
danger_reason: "{{project_danger_reason}}",
|
||||
{{/is_dangerous}}
|
||||
)
|
||||
|
||||
{{&project_doc_body}}
|
||||
|
||||
= Project Pinout
|
||||
== Digital Pins
|
||||
#align(center)[#table(
|
||||
columns: 4,
|
||||
align: left,
|
||||
table.header(
|
||||
[\#], [Input], [Output], [Bidirectional]
|
||||
),
|
||||
{{&digital_pins}}
|
||||
)]
|
||||
|
||||
{{#is_analog}}
|
||||
== Analog Pins
|
||||
#align(center)[#table(
|
||||
columns: 3,
|
||||
align: left,
|
||||
table.header(
|
||||
[`ua`\#], [`analog`\#], [Description]
|
||||
),
|
||||
{{&analog_pins}}
|
||||
)]
|
||||
{{/is_analog}}
|
||||
Reference in New Issue
Block a user