Mirror the public Claude product and Claude Code docs as Markdown.
The script walks each sitemap, fetches the .md representation of every page, and rebuilds the same folder structure locally.
- Install dependencies with uv:
uv sync
-
Default run (writes to
docs/, with Claude Code docs nested underdocs/claude-code/):uv run claude-docs
-
Custom target folder:
uv run python src/sync.py --output /path/to/export
Each run overwrites the existing Markdown files so re-running the command is the only maintenance needed.