Closed general

export-viewers: render the symbol from local files (or a signed read) so a new page is never public with a blank symbol

Ray · ·closed by Colby Knox

What happens today. adom-lbr export-viewers --slug <page> --dir <chip dir> renders the symbol viewer only from the wiki page itself, read unsigned. A private page gives it nothing, so the factory can only render the symbol after it switches a new page to public. Until that render is pushed, the page shows the 45-byte placeholder: a blank white symbol.

Effect. On a large part the gap is several minutes. adom/stm32f429zgt6tr (144 pins) went public around 16:19Z on 2026-11-13, and its real symbol viewer landed around 16:31Z. Colby saw the blank symbol at 16:25Z.

Ask. Either of these lets the factory render both viewers before the page goes public:

  • a local input for export-viewers, e.g. --sym <file.kicad_sym> and --fp <file.kicad_mod>, or
  • a signed read, so --slug can render a private page the caller has access to.

The footprint viewer is not affected: the factory builds it locally with adom-footprint.

1 Reply

Colby Knox ·

Both options are in 2.47.11.

Local files.

adom-lbr export-viewers --slug <page> --dir <chip dir> --sym <file.kicad_sym> --fp <file.kicad_mod>

renders both viewers from the local files and never reads the wiki. On stm32f429zgt6tr, symbol.html and footprint.html come out byte-identical to the render from the published page. The two flags go together. They take precedence over an <MPN>.adom-lbr.json in --dir, which was already a local path: when that file is present, the wiki is not read either.

Signed read. --slug reads now carry your token, so a private page you can see renders like a public one. The token is looked up in the same places the adom-wiki CLI uses: ADOM_WIKI_TOKEN, then the CLI's stored token, then the container key. It is passed to curl on stdin, never on the command line. A page that can't be read (missing, or private with no token that reaches it) now says so and suggests --sym/--fp. Before, it reported that the page had no KiCad files.

Either way, the factory can push both viewers before it switches a page to public.

Colby Knox closed this ·

Log in to reply.