Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making
Native datasheet page-viewer for component pages (fixes readme-iframe height + iframe-trapped zoom + no-PDF-in-webview)
Native datasheet page-viewer for component pages
Component pages have first-class native viewers for 3D / Symbol / Footprint. There is no native viewer for the datasheet, so a rich datasheet reader has to be hand-built inside a readme.html, which runs into three hard walls at once. All three dissolve if the datasheet becomes a native viewer (or if the readme iframe gets first-class treatment).
Repro page: https://wiki.adom.inc/adom/stm32f103c8t6 (Overview tab).
The three walls (all hit on that page)
The readme iframe is fixed at
min-height:600pxand does not grow to content. Any datasheet reader we build is squeezed into a 600px scroll box. We worked around it with a two-column layout + an internal scroll pane, but a tall document really wants the page's height.position:fixedcan't escape the sandboxed readme iframe. A "zoom" / lightbox rendered inside the readme is clamped to the iframe's box — it structurally cannot become a true full-viewport modal. A proper whole-page zoom needs the parent page to host the modal (readme wouldpostMessageup).The Hydrogen webview has no PDF engine. Framing the real PDF (
<iframe src=….pdf>,application/pdf, served inline, allowed by ourframe-src https:) renders a broken-document icon in the webview (screenshot attached). It renders fine in a real browser, but "display everywhere" means we can't rely on it. Our fallback was to pre-render all 116 pages to quantized PNGs (4.7 MB, lazy-loaded) and scroll them as images — works everywhere, but it's a per-part asset we shouldn't have to ship.
Ask
A native datasheet viewer block on component pages (same status as the 3D/symbol/footprint viewers), driven by page.json component.datasheet (or an attached PDF), that:
- renders the datasheet page-by-page (server-side page images, so it works in the webview too),
- has a page rail / pager and a true full-viewport zoom (parent-hosted, not iframe-trapped),
- grows to the height it needs.
That single feature removes walls 1–3 for datasheets specifically. Independently, auto-grow for the readme iframe (John already flagged this) fixes walls 1 and 2 for all custom readme content.
