Files
copilotkit__copilotkit/docs/README.md
Sam Julien 69673f2ea7 docs: route all documentation authoring to shell-docs
The top-level docs/ app is retired but nothing said so, and two
instruction surfaces still pointed contributors there. Establish a
single canonical rule and reduce the other surfaces to pointers.

- Add .claude/docs/documentation.md as the source of truth: CopilotKit
  docs are authored in showcase/shell-docs/src/content/; the top-level
  docs/ folder is retired; AG-UI protocol docs are authored upstream in
  ag-ui-protocol/ag-ui and mirrored here.
- CLAUDE.md: add an Essentials rule and a Reference link.
- docs/README.md: replace boilerplate with a retired/STOP banner.
- .claude/docs/hooks.md: fix the stale /docs pointer; document that a
  hook's API reference page lives in reference/hooks/ and that v2
  reference nav is generated from frontmatter (no meta.json).
- CONTRIBUTING.md: add a two-domain documentation section.
2026-06-03 10:04:56 -07:00

73 lines
2.2 KiB
Markdown

# ⛔ This docs app is retired — do not edit files here
**CopilotKit documentation is now authored in [`showcase/shell-docs/`](../showcase/shell-docs/).**
This top-level `docs/` Next app and its `content/docs/` MDX tree no longer publish to the
live site. Changes made here will **not** reach docs.copilotkit.ai. The
`showcase/scripts/sync-docs-from-main.ts` script is legacy (one-direction, `docs/` → shell-docs)
and should not be relied on.
- **CopilotKit docs** → author in `showcase/shell-docs/src/content/`
(`docs/`, `reference/`, `snippets/`, `framework-overviews/`).
- **AG-UI protocol docs** → author upstream in
[`ag-ui-protocol/ag-ui`](https://github.com/ag-ui-protocol/ag-ui) (publishes to docs.ag-ui.com),
then sync back into the mirror at `showcase/shell-docs/src/content/ag-ui/`.
See [.claude/docs/documentation.md](../.claude/docs/documentation.md) for the full rule.
---
<details>
<summary>Legacy README (retained for history)</summary>
This is a Next.js application generated with
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
Run development server:
```bash
npm run dev
# or
pnpm dev
# or
yarn dev
```
Open http://localhost:3000 with your browser to see the result.
## Learn More
To learn more about Next.js and Fumadocs, take a look at the following
resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
## Vercel Deployment with Git LFS
Docs assets are tracked with Git LFS. To ensure production builds always receive
real asset bytes (not pointer files), deploy docs through GitHub Actions using
`.github/workflows/deploy_docs_vercel.yml`.
Required GitHub repository secrets:
- `VERCEL_TOKEN`
- `VERCEL_ORG_ID`
- `VERCEL_PROJECT_ID_DOCS`
PR previews:
- `.github/workflows/deploy_docs_vercel_preview.yml` deploys docs previews for
non-fork pull requests.
- The workflow posts/updates a sticky PR comment with a clickable
`Open Docs Preview` link.
Recommended Vercel project setting:
- Disable automatic Git-based deployments for the docs project and let the
GitHub Actions workflow handle production deploys.
</details>