skill
molecule-publish
Public Made by Adomby adom
Publish molecules AND generic boards to the Adom wiki - one publisher, two shapes: OCCT conversion (molecule mode with stats gates, or plain for boards), component packaging, adom-wiki publish, APM re
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).