Files
tt-support-tools/docs/user_project.typ.mustache
Kristaps Jurkans 6994c804d7 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.
2025-12-05 13:16:59 +00:00

45 lines
1.0 KiB
Plaintext

#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}}