Documentation Generation
The typecad doc command generates self-contained HTML documentation from a Markdown file combined with a KiCAD PCB file. It automatically embeds PCB layer images, 3D renders, and other visuals.
Basic Usage
typecad doc docs/board.md build/board.kicad_pcb -o docs/board.htmlCreating Your Document
Create a Markdown file with frontmatter and content:
---
title: Sensor Board Documentation
company: Acme Corp
board_name: SensorBoard
revision: "1.0"
---
# Sensor Board Documentation
## Top Copper Layer

## Bottom Copper Layer

## Component Placement

## 3D View

## Schematic Notes
The board uses an ATtiny3227 MCU with I2C-connected sensors.Layer Export Syntax
Use custom image syntax to reference PCB layers:
| Syntax | Description |
|---|---|
 | Front copper layer |
 | Multiple layers combined |
 | Bottom copper layer |
 | Front silkscreen |
 | Board outline |
 | 3D render with rotation |
 | Drill map |
 | Layer stackup diagram |
Assembly Documentation
A common use case is generating assembly documentation:
typecad doc assembly.md build/sensor_board.kicad_pcb -o build/assembly-docs.htmlThis creates a shareable, self-contained HTML file with all images embedded — perfect for sending to manufacturers or archiving.