Clanker documentation: guides, API reference and SDK reference for the Clanker token protocol. Live site: docs.clanker.world (Mintlify, built from mintlify/). Handwritten guides are GitBook Markdown at the repo root (general/, references/, README.md), navigated by SUMMARY.md and configured by .gitbook.yaml. Layout and migration notes: mintlify/README.md, mintlify/MIGRATION.md.
Run from mintlify/ (Node 22+, npm ci --ignore-scripts once if you need to run anything):
npm run sync:guides: regenerate the Mintlify.mdxcopies of the root guides and assetsnpm run check: format check, lint (page structure, GitBook rules, SDK downloads, unsynced guides) and testsnpm run build:mint validate;npm run links: internal link checknpm run dev: local preview on port 3001npm run import:api,npm run import:sdk: convert generated reference Markdown (normally done by the upstream bots)
Run only what answers a question. CI runs format:check, lint, test, build, links and links:mint on the PR, but not check:preview.
- docs.clanker.world deploys from the
releasebranch, foldermintlify/. Changes onmaingo live only after amain->releasePR is merged. - The API reference is generated from
clanker.world/docs/api-registry.ts. The clanker.world docs workflow runs on itsreleasemerges and pushes the result straight to DOCSmain(commits likeUpdate API reference docs from clanker.world@<sha>). The SDK reference comes from TypeDoc inclanker-sdk. Edit those sources, never the generated pages inapi-reference/,sdk-reference/or theirmintlify/copies. - GitBook renders only the root Markdown files listed in
SUMMARY.md. Files outside it (like this one) are not published.
- Edit or add the GitBook Markdown at the root.
- For a new page, add it to
SUMMARY.md,mintlify/migration/pages.json(title, source, route, oldPath,sourceSha256of the source file) and the navigation inmintlify/docs.json. Removing a page means removing all three entries and adding a redirect indocs.json. - Run
npm run sync:guides, thennpm run check. Commit the root file and the generated.mdxtogether; Lint fails on unsynced guides.
Droids were removed, along with preclanks and the Legion API. /droids/* and the old preclank and Legion pages redirect to token deployments. Do not re-add them.
- v5 is the main version. Write lowercase
v5, likev4.0.0; useV5only when quoting UI text. - Document what exists. No "coming soon", and no caveats that the SDK lacks v5.
- Never mention any other launchpad.
- No em dashes.
- Contract addresses, chain IDs and roles come from on-chain checks or the clanker.world and clanker-sdk registries. Never guess them.
- Work on a branch and open a PR to
main. Never push tomainorrelease. - CI (
.github/workflows/ci.yml, workflowChecks) runs Format, Lint, Tests, Build and Links on every PR tomainorrelease. Wait for them to pass before merging, even if GitHub does not block the merge. - Open a
main->releasePR only when asked, and leave it for the owner to merge. - Commits: short lowercase messages (
docs: ...,fix: ...,chore: ...), no AI attribution. npm run preparepoints git at.githooks: pre-commit formats staged scripts and config. Pushing runs no local checks.
- One agent per task, each in its own
.worktrees/<short-name>on a branch from the latestmain, ending in its own PR. - One writer at a time for
SUMMARY.md,mintlify/docs.jsonandmintlify/migration/pages.json. Tasks that need the same one of these run one after another. - Agents sharing a checkout never commit, stash or switch branches there.