feat(docs): add new datasheet generation method (#123)

(cherry picked from commit c36badfb60)
This commit is contained in:
Kristaps Jurkans
2025-11-14 22:16:17 +02:00
committed by Uri Shaked
parent bef483ab40
commit 6e576d6de6
37 changed files with 2751 additions and 205 deletions
+23 -1
View File
@@ -1,4 +1,25 @@
from typing import TypedDict
from typing import List, Literal, TypedDict
class ArtworkEntryType(TypedDict):
"""TypedDict for artwork, used by `config.DatasheetConfig`"""
id: str
rotate: str
class DatasheetConfig(TypedDict):
"""TypedDict for the datasheet config within Tiny Tapeout's config.yaml file"""
pinout: Literal["caravel", "openframe"]
theme_override_colour: str
show_chip_viewer: bool
link_disable_colour: bool
link_override_colour: str
qrcode_follows_theme: bool
include: List[str]
disabled: List[str]
artwork: List[ArtworkEntryType]
class Config(TypedDict):
@@ -9,3 +30,4 @@ class Config(TypedDict):
project_dir: str
end_date: str
openframe: bool
datasheet_config: DatasheetConfig