by adom
Publish molecule sources to the Adom wiki (STEP, board, schematic, <slug>-fab.zip, export.json); the wiki's 3D model registry builds the GLB, footprint and symbol. Checks the bundle the way the registry does, publishes private, waits for the build, sets the hero from the built model, then makes the page public. Board mode still converts plain boards. Also writes APM render assets and component dependencies. Companion to adom-wiki model import.
Emit APM render assets (render/: manifest + pcb.svg + per-sheet SVGs) on every publish
Part of #1.
APM shows the PCB and hierarchical-schematic views from a pre-rendered render/ folder on the page. Emit it on every publish/update so boards/molecules load instantly and don't trip APM's red "missing render folder" error bar.
What render/ must contain
manifest.json—{ "v": 1, "glb": <bool>, "pcb": <bool>, "sheets": ["Root","Data",…] }pcb.svg— KiCad-colored PCB plotsheet-000.svg,sheet-001.svg, … — one per schematic sheet, order matchingmanifest.sheets- (
board.glboptional/unnecessary now that 3D comes frommodel_3d_path— see #3)
How
- Simplest: after publishing the page files, call
adom-project-manager --render-board <slug>. It's push-only intorender/(writes manifest +pcb.svg+ sheet SVGs, touches nothing else — safe on molecule pages). Requires the page to already carry.kicad_pcb+ every.kicad_sch. - Install:
adom-wiki pkg install adom/adom-project-manager.
Acceptance
- After publish,
render/manifest.json+pcb.svg+ per-sheet SVGs exist on the page. - Opening the board/molecule in APM loads PCB + schematic with no "missing render folder" bar.
- Re-running on an edit refreshes the assets (never stale).