This page documents every syntax convention that the static docs generator (scripts/generate-agent-docs.mjs and related chrome in scripts/docs-site.*) applies on top of standard Markdown when building apps/docs/. These patterns are intentional and correct in the source files. Do not treat them as formatting errors during review.
The canonical content rules for writing new pages are in FORMAT.md. This file covers only the generate-time / site chrome rendering layer.
SUMMARY.md nav icon comments#
docs/SUMMARY.md uses HTML comments embedded in list items to attach sidebar icons to navigation entries. The generator reads these comments and renders an icon next to the nav label. They are invisible in GitHub's Markdown preview and have no effect on the document body.
Pattern (the features/example-page.md path is illustrative only — not a real doc):
- [Page Title](meta/features/example-page.html) <!-- nav:icon-name --> — Short description.
Example from the live file:
- [Wrenches](meta/features/wrenches.html) <!-- nav:wrench --> — Reusable MCP snippets your assistant runs.
Rules:
- The comment must appear on the same line as the list item, immediately after the link.
- The icon name must be a valid key from the table below.
- Do not remove or "fix" these comments. They are load-bearing for the sidebar UI.
- The
—(em dash) and description text after the comment are optional human-readable annotations; the generator ignores them for the page body.
Valid icon keys:
| Key | Key | Key | Key |
|---|---|---|---|
book-open |
bar-chart |
key |
shield |
box |
bar-chart-2 |
layers |
shield-check |
bell |
brain |
layout-dashboard |
slack |
bridge |
briefcase |
layout-grid |
smartphone |
building-2 |
calendar-clock |
library |
sparkles |
chart-bar |
circle-help |
link |
scroll-text |
code |
code-2 |
list-todo |
search |
coins |
cpu |
lock |
server |
credit-card |
crown |
mail |
share-2 |
database |
eye |
message-square |
sliders |
file-text |
folder |
messages-square |
tag |
git-branch |
globe |
monitor |
user |
graduation-cap |
plug |
reply |
users |
radio-tower |
refresh-cw |
robot |
users-round |
rocket |
rotate-ccw |
variable |
video |
wrench |
zap |
If an icon key is not in this table, the generator falls back to the file-text icon. If you need a new icon added, add the Lucide SVG path to NAV_ICON_SVGS in scripts/docs-nav-icons.mjs and update this table.
Callout blockquotes#
The generator converts blockquotes that open with a bold keyword into styled .callout panels.
Supported keywords: Note:, Warning:, Tip:
Pattern:
> **Note:** Helpful context that is useful but not critical.
> **Warning:** Important risk, limitation, or destructive action.
> **Tip:** Practical advice that helps the user succeed.
In raw Markdown these are standard blockquotes. On the published HTML site they render as colored callout panels with an icon. Do not convert them to plain paragraphs.
See FORMAT.md for the full callout authoring rules.
Capability tile grids (:::cards)#
The generator turns fenced blocks that begin with :::cards into a responsive card grid. On GitHub.com, these lines appear as plain unformatted text — that is expected.
Pattern:
<div class="card-list" data-cols="3">
<a class="card-tile card-tile--linked" href="features/some-page.html"><div class="card-tile__head"><span class="card-tile__icon card-tile__icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/></svg></span><span class="card-tile__title">Card Title</span></div><div class="card-tile__body prose"><p>Card body text as normal Markdown.</p></div></a>
<div class="card-tile card-tile--static"><div class="card-tile__head"><span class="card-tile__icon card-tile__icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg></span><span class="card-tile__title">Another Card</span></div><div class="card-tile__body prose"><p>No link on this one.</p></div></div>
</div>
Keys per tile:
| Key | Required | Description |
|---|---|---|
title |
Yes | Plain text label shown as the card heading. |
icon |
No | Any key from the valid icon table above, or a literal emoji. |
href |
No | Relative path to a doc page. Omit for a non-linking card. |
What looks wrong but is correct:
:::cards 3— not a heading, not a code fence. Intentional generator directive.===card— not a setext heading underline. Intentional tile separator.:::on its own line — not a broken fence. Intentional grid closing tag.
Code block language aliases#
The site maps shorthand language identifiers to their canonical highlight.js equivalents before applying syntax highlighting. These aliases are valid in source files and will highlight correctly, even if a strict linter flags the shorthand as non-standard.
Common aliases:
| Alias in source | Resolved to |
|---|---|
ts |
typescript |
py |
python |
js |
javascript |
sh |
bash |
yml |
yaml |
Use whichever form is clearest for the author. Both work.
URL deep-linking (?help= / ?topic=)#
In-product help and shared links use stable IDs via ?help=<id> (and legacy ?topic=). The site entry (apps/docs/index.html) resolves those to canonical .html pages using docs/topic-aliases.json.
Examples:
https://docs.apexti.com/?help=wrenches
https://docs.apexti.com/?help=boards-default-lanes
https://docs.apexti.com/?help=help-index
You may still see older ?topic=features/wrenches links in support threads; the router accepts those too. Prefer ?help= for new product links. Humans browsing the site should use /<slug>.html URLs directly.
Sidebar labels#
Sidebar labels come from the link text in docs/SUMMARY.md (not from the page H1). Keep SUMMARY titles clear and consistent; the static site does not rewrite casing.
Collapsible sidebar sections#
## headings in SUMMARY.md become collapsible sidebar groups. Opening a page expands its section; open/closed state is remembered in localStorage. While the sidebar filter has text, matching sections expand so results stay visible.
This is site chrome only — do not add collapse markup to SUMMARY.md.
What to flag versus what to leave alone#
| Pattern | Action |
|---|---|
<!-- nav:icon-name --> in SUMMARY.md |
Leave alone. Intentional. |
:::cards / ===card / ::: fences |
Leave alone. Intentional generator directive. |
> **Note:** / > **Warning:** / > **Tip:** |
Leave alone. Standard Markdown, styled on the HTML site. |
Shorthand code fence languages (ts, py, sh) |
Leave alone. Site resolves aliases. |
Legacy JSX tags (<Note>, <Card>, <Steps>) in source |
Flag. Deprecated artifacts; prefer the Markdown equivalents above. |
.mdx links or imports |
Flag. Link to .md files under docs/ instead. |
Missing title or description frontmatter |
Flag. Required on every page. |
