Writing these docs
docs/ is an Antora documentation component, not a standalone site. It has no
playbook of its own: the central documentation project consumes it as a content
source and builds it alongside other components.
Consuming this component
Add the repository to the central playbook’s content sources:
content:
sources:
- url: https://github.com/<org>/agentcore.git
branches: [main]
start_path: docs
start_path: docs is what makes Antora find docs/antora.yml.
Component descriptor
docs/antora.yml:
| Key | Value |
|---|---|
|
|
|
|
|
|
|
|
|
One entry per module nav file, in menu order |
|
Shared facts (account, region, stack names, tenant id, BigQuery project) so a value is written once |
Referencing this component from another one:
xref:morpheus:ROOT:index.adoc[Morpheus]
xref:morpheus:business:re-engagement.adoc[Re-engagement segments]
Modules
| Module | Scope |
|---|---|
|
Platform-wide: architecture, configuration, development, deployment, operations, security, conventions |
|
Domain rules — what the platform decides and why |
|
The Bedrock AgentCore container runtime |
|
One page per Lambda function |
|
Event catalog, payload schemas, routing |
|
Shared library reference |
|
Domain model, ORM, repositories, BigQuery |
|
CDK, SAM, queues, schedules, IAM, observability |
|
Forward-looking design documents |
Standard module layout:
modules/<name>/
├── nav.adoc navigation fragment listed in antora.yml
├── pages/ .adoc pages — one URL each
├── partials/ reusable fragments, included with include::partial$…[]
├── examples/ verbatim files, included with include::example$…[]
├── images/ referenced with image::…[]
└── attachments/ downloadable files, linked with xref:attachment$…[]
Authoring rules
- Pages are AsciiDoc
-
Antora does not build Markdown. Every page is
.adocwith a level-0 title (= Title) and section levels stepping down by one. - Every page carries a description
= Page title
:description: One sentence, used for search results and metadata.
- Cross-references use resource ids, never file paths
xref:architecture.adoc[System architecture] (1)
xref:business:re-engagement.adoc[Re-engagement] (2)
xref:business:call-lists.adoc#suppression[Suppression] (3)
| 1 | Same module. |
| 2 | Another module in this component. |
| 3 | A section anchor in another module’s page.
|
[mermaid] .... flowchart LR A --> B ....
+
With asciidoctor-kroki registered in the playbook these render as diagrams;
without it they degrade to readable literal text. Register the extension in the
playbook to get rendered output:
+
asciidoc:
extensions:
- asciidoctor-kroki
- Shared facts come from attributes
-
Write
us-east-1,morpheus-sam,b191a905-5d19-4fa0-941b-d8eb81c0c477,bigqueryexport-183608rather than literals. In a code block, opt in to substitution:[source,bash,subs=attributes+] ---- aws logs tail /aws/lambda/{sam-stack}-hubspot-sync --follow ---- - Code references point at real paths
-
Name the file so a reader can open it —
lambdas/morpheus_hubspot/registry.py,libs/morpheus-llm/morpheus_llm/providers/claude_service.py. Do not paste large verbatim blocks that will drift; quote the few lines that carry the rule. - Admonitions carry weight
-
NOTEfor context,TIPfor a shortcut,IMPORTANTfor something easy to get wrong,WARNINGfor a rule with consequences,CAUTIONfor a destructive action. Use them sparingly enough that they still register.
Adding a page
-
Create
modules/<module>/pages/<name>.adocwith a title and:description:. -
Add an
xref:line to that module’snav.adocin the right place. -
Cross-link it from any page whose reader would want it.
Adding a whole module also requires appending its nav.adoc to the nav: list
in docs/antora.yml, or nothing in it will appear in the menu.
Keeping docs true
The pages describing behaviour — every page under business, events, and
lambdas — were written against the source. When you change a rule, change the
page in the same pull request. The highest-risk drift points:
| If you change… | Also update |
|---|---|
A |
|
A Pydantic event model in |
The matching queue page under |
A schedule or |
|
A priority formula in |
|
A constant in a |
The relevant |
A secret key or environment variable |
|
An ORM model or repository |