Documentation for the AFAuth Protocol, published at docs.afauth.org.
Built with Mintlify.
- Authored here:
concepts/,guides/,sdk/,cli/,reference/,snippets/. - Synced from upstream — do not edit by hand:
spec/←AFAuthHQ/specsdk/typescript/*/reference/←AFAuthHQ/typescript-sdk(typedoc output)cli/commands/←AFAuthHQ/cli(cobra doc-gen output)
npm install
npm run dev # starts Mintlify on http://localhost:3000
npm run broken-links # link check
npx mint validate # strict build validation (what CI runs)- Spec syncs on every push to
AFAuthHQ/spec@main(event-driven viarepository_dispatch), with a 06:00 UTC cron as fallback. - TypeScript SDK reference syncs on every release tag in
AFAuthHQ/typescript-sdk. - CLI reference syncs on every release tag in
AFAuthHQ/cli.
Each sync opens a PR labelled automerge: <source>-sync. The PR auto-merges if:
- Mintlify build passes
- Link check passes
- Diff-size sanity check passes (no >50% file deletion)
If any gate fails, the PR stays open with the failing check.
In AFAuthHQ/spec, add a workflow that runs on push to main and calls:
- run: gh api repos/AFAuthHQ/docs/dispatches -f event_type=spec-updated
env:
GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }}DOCS_DISPATCH_TOKEN is a fine-grained PAT with Actions: write on AFAuthHQ/docs, stored as a secret in AFAuthHQ/spec.
gh workflow run sync-spec.yml -R AFAuthHQ/docsSpecification text (synced from AFAuthHQ/spec) remains under CC-BY-4.0. All other content in this repo is under Apache-2.0.