Expand description
Platform overlay dispatch: given a Config::platforms list, add
the platform-specific artifacts on top of the core docs/aidoc/
output produced by crate::generate::render_all.
The core output is intentionally platform-neutral (it follows
llmstxt.org). Overlays add the small extra
files each external doc service expects — for example, context7.json
at the repo root, or .devin/wiki.json for DeepWiki — without
changing the core layout. Callers opt in per platform via
--platform <name> on the CLI or Config::platforms in code.
This file is intentionally a thin dispatcher; each overlay’s actual emitter lives in a follow-up phase.
Functions§
- apply_
overlays - Apply every overlay in
platformstoartifactsin the order they appear. Overlays may append new artifacts, replace existing ones by path, or mutate existing bodies in place; the dispatch loop takes no position on how they combine, only on the order they run.