# Docs sitemap export (Task #139)

**Live:** https://aidaide.app/docs-sitemap-export  

## What

The `<url>` block for `/docs` and every crawlable chapter under `/docs/…` is **exported from** `docs-content.json` (chapter list + `PATH_ALIASES` in `scripts/build-docs-chapter.py`), including `/docs/ota-updates`.

## Commands

```bash
python3 scripts/build-docs-chapter.py --export-sitemap
python3 scripts/build-docs-chapter.py --check-sitemap
```

Optional: `--lastmod YYYY-MM-DD`

## Markers in `sitemap.xml`

```
<!-- BEGIN docs-chapters (auto from docs-content.json) -->
…
<!-- END docs-chapters (auto from docs-content.json) -->
```

Do not hand-edit URLs inside the markers — re-run `--export-sitemap` after adding a chapter.

## Lint

`npm run lint` runs `--check-sitemap` so chapter/sitemap drift fails locally/CI.

## Pricing

Image titles must not say `$7/mo`. Live: Free forever · Pro **$19/mo**.
