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 packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.
Deep-link readme.html sections: forward the page URL hash to the readme iframe + a readme-scroll-to protocol
The gap
readme.html renders in a sandboxed iframe, so any section ids live inside the iframe. A hash on the page URL (wiki.adom.inc/<owner>/<slug>#<section>) therefore never scrolls to the section, because the wiki does not forward the parent hash down to the readme iframe. Readme authors can add ids and anchor links, but they cannot make the pretty page URL deep-link to a section from the readme side. This needs platform support.
Verified (on adom/component-widgets, an HTML readme)
- Added
ids + hover-reveal anchor links to every section (pinout,moleculize, etc.). wiki.adom.inc/adom/component-widgets#moleculize→ stays at the top, does not jump.wiki.adom.inc/readme/adom/app/component-widgets?variant=public#moleculize→ jumps correctly to the section (the ids work fine within the readme document; only the parent-to-iframe hop is missing). This raw-endpoint URL is the only working deep link today, but it drops the wiki page chrome and is not the shareable page URL.
Ask
When the page URL carries a hash, deep-link the readme section. Two coordination points, because the readme iframe is sized to its full content via the existing readme-height protocol (so the readme cannot scroll itself):
- Forward the hash down. On load and on
hashchange, pass the page URL's#<id>to the readme (append to the iframesrc, orpostMessage({type:'readme-hash', hash})). - Scroll the page up. The readme finds the target, and posts its position so the parent scrolls the page to it, e.g. a new sibling to
readme-height/readme-lightbox:
The wiki scrolls toparent.postMessage({ type: 'readme-scroll-to', top: el.getBoundingClientRect().top + window.scrollY }, '*')iframeOffsetTop + top.
That makes wiki.adom.inc/<owner>/<slug>#<section> land on the section for any HTML readme (component pages, docs, guides). Natural home for the protocol doc is docs/readme-sandbox.md (the readme-iframe protocols, adom/wiki #52), alongside readme-height and readme-lightbox.
Why it matters
Component pages are getting rich multi-section readmes (a page of widgets, a datasheet-plus-CAD hub). Being able to hand someone a link straight to the pinout, or the board-to-molecule widget, is the difference between "go find it" and "here it is." Related: the wiki-readme-html skill documents the sandbox and its current protocols.