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
@@ -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