---
title: "Toolbelt Docs Format"
description: "Content rules for writing portable Toolbelt documentation in Markdown."
updated: 2026-10-29
---

# Toolbelt Docs Format

Toolbelt documentation in this repository uses plain Markdown with YAML frontmatter. The same source files can support GitHub Pages, answers from the in-product assistant (via GitHub MCP), `llms.txt` discovery, and future indexing—without tying the content to a single presentation stack.

## Format goals

- Keep docs portable.
- Keep docs readable in GitHub.
- Keep docs easy for the in-product assistant and external AI agents to retrieve and quote.
- Keep `llms.txt` / `llms-full.txt` and per-page `.md` twins current whenever published docs change.
- Avoid presentation-specific syntax.
- Avoid vendor-specific components.

## File structure

The docs live under `docs/` with this layout:

```text
docs/
  SUMMARY.md
  FORMAT.md
  topic-aliases.json
  llms.txt          # generated
  llms-full.txt     # generated
  get-started/
  features/
  support/
  tutorial/
```

- `docs/SUMMARY.md` is the published nav map. Only pages listed there ship to agents.
- `docs/topic-aliases.json` maps stable in-product help IDs to the current topic (and optional section).
- `docs/llms.txt` and `docs/llms-full.txt` are generated agent indexes — do not edit by hand.
- Public docs pages are published to `apps/docs/<slug>.html` (canonical at `https://docs.apexti.com/<slug>.html`), plus generated `index.html` (redirects `/`), `sitemap.xml`, and `robots.txt`.
- Agent page twins are published to `apps/docs/<slug>.md` (served at `https://docs.apexti.com/<slug>.md`).
- `docs/FORMAT.md` (this file) defines the content contract for new and updated pages.
- Get-started pages live under `docs/get-started/`.
- All product, integration, and organization pages live under `docs/features/`.
- Support pages live under `docs/support/`.

## In-product help links (`?help=`)

Product UI links use a stable help ID — not a docs file path and not a URL `#fragment`:

```text
https://docs.apexti.com/?help=wrenches
https://docs.apexti.com/?help=boards-default-lanes
```

Public catalog for the product team:

| Resource | URL |
|---|---|
| Human-readable catalog | https://docs.apexti.com/?help=help-index |
| Raw JSON map | https://docs.apexti.com/topic-aliases.json |

The site entry (`/`) resolves `?help=<id>` through the deployed alias map and **redirects to the canonical `.html` page** (with `#heading-id` when the alias targets a section). Legacy `?topic=<slug>` URLs redirect the same way. `help-index` is a reserved catalog ID (→ `/help-index.html`).

### Naming

| Kind | Help ID shape | Example key | Example value |
|---|---|---|---|
| Page | leaf filename | `boards` | `features/boards` |
| Section | `page-section` | `boards-default-lanes` | `features/boards#default-lane-slugs` |
| Legacy path | retired topic path | `features/old-path` | `features/boards` |

Rules:

- Keys are lowercase kebab-case (or a lowercase path for legacy `?topic=` redirects).
- Values are a SUMMARY slug, or `slug#heading-id` matching the viewer’s heading anchors.
- Do not put `#…` on product help URLs — encode the section in the help ID / map value.
- Add section help IDs only when product needs them (not every heading).
- When a page moves or a heading renames, update the map target; keep the help ID stable.
- `npm run sync:docs-app` validates aliases (including that `#heading-id` exists) and copies the file into the live app cache.

## Agent-readable docs (required)

`docs.apexti.com` renders with JavaScript. Agents must use:

| Artifact | URL |
|---|---|
| Index | https://docs.apexti.com/llms.txt |
| Full dump | https://docs.apexti.com/llms-full.txt |
| Page Markdown | https://docs.apexti.com/`<slug>`.md |

Whenever a published page is **added, changed, or removed**:

1. Update the source `.md` under `docs/` (and `SUMMARY.md` if the map changes).
2. Regenerate agent artifacts:

```bash
npm run generate:agent-docs
# or (also syncs the live docs app cache)
npm run sync:docs-app
```

3. Deploy when publishing live: `npm run deploy`.
4. Commit generated `llms.txt`, `llms-full.txt`, `apps/docs/<slug>.md` / `.html`, `sitemap.xml`, and `robots.txt` with the content change.

Rules:

- Treat `SUMMARY.md` as the single source of truth for the page map.
- Never hand-edit `docs/llms.txt`, `docs/llms-full.txt`, generated `apps/docs/<slug>.md` / `.html`, `sitemap.xml`, or `robots.txt`.
- Never include real API keys, assistant/workspace IDs, or customer names — use `<workspaceId>` and `<apikey>`.
- Follow the stored skill `skills/apexti-toolbelt-docs-llms/SKILL.md` for the full publish checklist.

## Frontmatter

Every page should start with this minimum frontmatter:

```yaml
---
title: "Page title"
description: "One-sentence summary of the page."
updated: YYYY-MM-DD
---
```

Rules:

- Every page must include `title`.
- Every page must include `description`.
- Every page must include `updated` (ISO date `YYYY-MM-DD`). The generator fills this from git history when missing.
- Keep descriptions plain text.
- Do not use JSX, Markdown links, or code spans in descriptions.
- Do not invent metadata until the product needs it.

Optional metadata (not required yet) may look like this when the team wants richer navigation or indexing:

```yaml
---
title: "Wrenches"
description: "Reusable JavaScript functions that let assistants call MCP tools directly."
category: "Features"
slug: "features/wrenches"
---
```

## Markdown rules

- Use ATX headings: `##`, `###`, `####`.
- Do not skip heading levels.
- Use fenced code blocks with language identifiers.
- Use standard Markdown tables.
- Use relative links between docs pages.
- Do not use MDX imports.
- Do not use JSX or legacy component tags in Markdown source (for example `<Card>` or `<Note>`, formerly used under Mintlify). Prefer the Markdown equivalents below.

## Callouts

Use blockquotes with a bold label and a single space after the em dash:

```markdown
> **Note:** Helpful context that is useful but not critical.
```

```markdown
> **Warning:** Important risk, limitation, or destructive action.
```

```markdown
> **Tip:** Practical advice that helps the user succeed.
```

Rules:

- Keep callouts short.
- Use callouts only when the label adds meaning.
- Do not use legacy callout components (the tag-based Note, Warning, or Tip elements).

## Capability tiles (viewer extension)

For capability grids on the static docs site, use a fenced block that starts with `:::cards` and optional column count (`1`–`4`), then one or more tiles. Each tile begins with `===card` on its own line, followed by YAML-like `key: value` lines, a blank line, then the tile body as normal Markdown (paragraphs, lists, emphasis).

Supported keys per tile:

- **`title`** (required): Plain text tile title.
- **`icon`** (optional): Icon name mapped to an emoji in the viewer (for example `plug`, `robot`, `wrench`; names match the former docs stack), or a literal emoji.
- **`href`** (optional): Relative doc path (for example `features/wrenches.md`). Omit for a non-linking tile (still styled as a card).

Example:

```markdown
:::cards 3

===card
title: Services & Tools
icon: plug

**Services** are integrations…

===card
title: Wrenches
icon: wrench
href: features/wrenches.md

**Turn "AI magic" into reliable code.**

:::

```

Rules:

- End the grid with a line that is exactly `:::`.
- After the `key: value` header lines, include one blank line before the body so a line like `Note: …` is not parsed as a header key.
- On github.com, the `:::cards` / `===card` lines render as plain text; the layout appears in the viewer.

## Links

- Links from `docs/SUMMARY.md` are relative to `docs/`, for example `features/wrenches.md`.
- Links between pages should be relative to the current file.
- Do not link to legacy `.mdx` paths; link to the portable `.md` under `docs/` instead.
- Prefer descriptive link text.

Examples:

From a file in `docs/` (same level as `features/`):

```markdown
See [Wrenches](https://docs.apexti.com/features/wrenches.md).
See [Slack Integration](https://docs.apexti.com/features/slack.md).
```

From a nested page (for example `docs/get-started/introduction.md`):

```markdown
See [Slack Integration](https://docs.apexti.com/features/slack.md).
```

## AI-readability rules

The in-product assistant may read one file or one section at a time through GitHub MCP.

- Make each page self-contained.
- Define important terms on first use.
- Use specific headings, not vague headings like “Overview” repeated many times without context.
- Avoid “as mentioned above” when the section might be read alone.
- Prefer direct statements over UI-dependent references.
- Avoid references to a specific docs presentation layer, such as “left sidebar,” unless the product UI actually has that element.

## Validation

Run these from the repository root to catch common authoring issues:

```bash
grep -R "<Note\|</Note\|<Warning\|</Warning\|<Tip\|</Tip\|<Card\|</Card\|<CardGroup\|</CardGroup\|<Steps\|</Steps\|<Step\|</Step\|<Accordion\|</Accordion\|<AccordionGroup\|</AccordionGroup" docs || true
```

```bash
grep -R "\.mdx" docs || true
```

```bash
grep -R "<[0-9]" docs || true
```

Expected results:

- No legacy JSX component tags in finished Markdown (the first command should return nothing).
- No links or paths that point readers at legacy `.mdx` destinations (the second command may still match this guide when it mentions `.mdx` in prose).
- No bare angle brackets before digits outside code blocks (for example, write *under 128K* in prose instead of a less-than sign plus a number).

## Source of truth

- Markdown under `docs/` is the canonical portable content source for the static docs site, optional Jekyll preview, and the in-product assistant.
- Mintlify is retired; do not author against `.mdx` or `docs.json`.
- Do not revive a SPA docs viewer for docs.apexti.com — improve the static HTML generator instead.
