Setup Antora
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Bootstrap a minimal, working Antora documentation site for a repository: verify/install the Node.js toolchain,
install Antora plus its extensions, scaffold antora.yml/antora-playbook.yml and a ROOT module with three
starter pages, and confirm the site actually builds.
Purpose
iru-setup-antora gets a repository from "no documentation site" (or a partially set-up one) to a building Antora
site with a minimal, useful ROOT module — without assuming any particular language or build system. It is
additive: a repository that already has some or all of this in place (this repository, ai-catalog, already
does) is left alone wherever it’s already correct, and only genuine gaps are filled — no page, config entry, or
nav entry already present is overwritten or reordered. It also copies its own bundled ui-bundle.zip into
docs/, so the generated antora-playbook.yml points ui.bundle.url at that local file instead of depending
on the upstream GitLab CI artifact URL at build time.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
(none) |
No |
|
N/A |
Outputs
-
docs/antora.ymlanddocs/antora-playbook.yml, written fresh or corrected in place if some fields were already wrong. -
docs/ui-bundle.zipcopied in from this skill’s own directory (unless already present), soantora-playbook.yml’s `ui.bundle.url: ui-bundle.zipresolves to a local file instead of the upstream GitLab CI artifact URL. -
docs/modules/ROOT/nav.adocand aROOTmodule skeleton atdocs/modules/ROOT/pages/containingindex.adoc(repository overview),installation.adoc(install guide), andreference.adoc(links to generated reports/dashboards) — skipped for any of the three roles already covered by an existing page under a different name. -
Antora,
@antora/lunr-extension,@sntke/antora-mermaid-extension, and@djencks/asciidoctor-mathjaxinstalled underdocs/(as dev/regular dependencies indocs/package.json). -
A
docs/build/entry added to the root.gitignoreif missing. -
A built static site at
docs/build/site(fromnpx antora antora-playbook.yml), or a fixed build error if one occurred — this skill does not report success on a broken build. -
A report grouping what already existed versus what this run created or corrected, plus a reminder to review the generated starter pages.
Execution flow
Dependencies
Invoked by
-
Setup Java Library Repository — Step 4 runs
iru-setup-antorawith noargs, deriving the component name/title/version straight from thepom.xmlthat Setup Java Library just wrote, and runs it before the CI-workflow step so that step’s own survey finds the docs already in place. -
Update Docs — conditionally, only when no Antora module exists anywhere in the repository yet, and only after asking the user; run via a sub-agent so
iru-update-docscan keep running afterward instead of blocking on it.
Related agents
-
Explore(see Agents) — used in Step 7 to build a picture of the top-level source layout and main public entry points before writingindex.adoc’s overview, rather than reading the whole source tree directly — the same agent the `iru-exploreskill itself uses for this kind of broad structural search.
When Update Docs invokes iru-setup-antora conditionally, it does so through a sub-agent it
manages, not one this skill spawns itself.
Source
SKILL.md on GitHub — the file this page was generated from.