Open general

Emit APM render assets (render/: manifest + pcb.svg + per-sheet SVGs) on every publish

barrett-land · 11d ago

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 plot
  • sheet-000.svg, sheet-001.svg, … — one per schematic sheet, order matching manifest.sheets
  • (board.glb optional/unnecessary now that 3D comes from model_3d_path — see #3)

How

  • Simplest: after publishing the page files, call adom-project-manager --render-board <slug>. It's push-only into render/ (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).

1 Reply

Drew Owens · 6d ago

Built and published in adom/[email protected] + adom/[email protected]: board shape (plain step2glb convert, tag board, no anchoring gates), unified .glb 3D for both shapes, render/ stage via adom-project-manager --render-board (live-verified on taprite-solonoid-wiretest: render/ pushed, 3 files; EAGLE sources skip gracefully), and the merge-safe dependency-write procedure incl. the Value-fallback caveat and the pkg-install side-effect note. #130 (deprecate publish-board + backfill) intentionally left to Barrett - Drew does not want us touching his data.

Log in to reply.