Repository navigation
feat(shell-docs)!: replace shell-docs with the Fumadocs rebuild - #8214
Closed
tylerslaton wants to merge 64 commits into
Closed
tylerslaton wants to merge 64 commits into
tylerslaton wants to merge 64 commits into
Conversation
tylerslaton
requested review from
jpr5,
mme,
rainerhahnekamp and
wolfmanfx
as code owners
November 4, 2026 18:57
Contributor
WalkthroughWarning Review details and warnings were omitted to fit the comment limit. |
4 tasks done
|
🚅 Deployed to the CopilotKit-pr-8214 environment in showcase
50 services not affected by this PR
|
tylerslaton
force-pushed
the
tylerslaton/docs-shell-docs-v2-preview
branch
from
November 4, 2026 19:26
a8bdb98 to
1d427ef
Compare
Contributor
Production Digest-Pinning AuditAll 43 services digest-pinned. Run 2026-11-10 14:53:42 PST — 0 finding(s). |
railway-app
Bot
temporarily deployed
to
showcase / CopilotKit-pr-8214
November 4, 2026 19:29
Destroyed
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: 0 B Total Size: 2.47 MB ℹ️ View Unchanged
|
tylerslaton
force-pushed
the
tylerslaton/docs-shell-docs-v2-preview
branch
from
November 9, 2026 17:36
14fc375 to
2406a3e
Compare
railway-app
Bot
temporarily deployed
to
showcase / CopilotKit-pr-8214
November 9, 2026 17:36
Destroyed
tylerslaton
force-pushed
the
tylerslaton/docs-shell-docs-v2-preview
branch
from
November 10, 2026 18:12
2406a3e to
3ab47f3
Compare
railway-app
Bot
temporarily deployed
to
showcase / CopilotKit-pr-8214
November 10, 2026 18:12
Destroyed
4 tasks done
tylerslaton
added a commit
that referenced
this pull request
Nov 10, 2026
## What does this PR do? Fixes the `Static analysis (zizmor)` check, which fails on every PR that changes a workflow file. The cause is on `main`, not in those PRs. `security_zizmor.yml` runs zizmor `latest`. Since the action bump in #7827, CI runs zizmor 1.32.0, which reports two new kinds of findings in files the failing PRs don't touch: - **`dangerous-triggers` (high):** the `issue_comment` triggers of `showcase_eval.yml` (`/eval`) and `test_e2e-showcase-on-demand.yml` (`/test`). Both already run only for trusted commenters: `showcase_eval.yml` checks for write access with `getCollaboratorPermissionLevel`, and `test_e2e-showcase-on-demand.yml` requires `OWNER`, `MEMBER` or `COLLABORATOR`. Both check out PR-head code with a `contents: read` token and `persist-credentials: false`. Each file's SECURITY header records the remaining TOCTOU risk. - **`obfuscation` (low):** `fromJSON('"\n"')` in `aeo_synthetics.yml`, `showcase_build.yml`, `showcase_validate.yml`, `test_smoke-starter.yml` and `test_starter-clean-install.yml`. It is how those workflows put a newline inside a one-line `format()` expression. zizmor's `--fix=safe` replaces it with a literal newline, which makes the YAML invalid. This PR: - adds the two comment-trigger workflows to `dangerous-triggers.ignore`, with the reason, as the config asks for each new entry; - adds an `obfuscation.ignore` list for the five workflows; - pins the action to zizmor `1.32.0`, so a future zizmor release can't fail unrelated PRs again. Bump it on purpose and update `.github/zizmor.yml` in the same PR. **Needs a maintainer's review:** the config says every new `dangerous-triggers` suppression must be reviewed by a maintainer. ## Verification - `uvx [email protected] --config .github/zizmor.yml --min-severity low .` on `main`: 2 high and 8 low findings, the same as CI. - The same command on this branch: "No findings to report" (45 ignored, 316 suppressed). - The `ghcr.io/zizmorcore/zizmor:1.32.0` image exists, and zizmor-action v0.8.1 accepts an exact `X.Y.Z` version. ## Related PRs and Issues - Unblocks the zizmor check on #8098 and #8214. ## Checklist - [x] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [x] If the PR changes or adds functionality, I have updated the relevant documentation - [x] If the PR contains a breaking change, the title has `!` (for example `feat(react-core)!: ...`) and the description has a `BREAKING CHANGE:` line with migration steps. See [VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md) - [x] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Pinned the security workflow to a specific version. * Updated security-check settings for selected workflows, including documented safeguards and accepted risks. Also adjusted handling of findings related to workflow expression formatting. These changes affect automated repository checks and do not change the app’s user-facing functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
docs.copilotkit.ai moves to a from-scratch rebuild on Fumadocs 16. It replaces the old app in showcase/shell-docs instead of sitting beside it, so the docs keep one home and one history. - The pages stay in src/content. Components resolve by name, so page imports are dropped except `.mdx` snippets, and a page with sub-pages moves to `X/index.mdx`. Otherwise this commit leaves the pages as they were. - Spacious docs layout and a home page in the copilotkit.ai brand, with a framework picker, a sidebar per topic, and SDK and partner logos. - Ask CopilotKit, in the sidebar and as a full page at /ask. - Standard catalog component pages on Fumadocs Story, an examples playground that embeds the showcase demos, Orama search, an MCP server, llms.txt and Markdown routes, telemetry, and the legacy redirect tables. - public/ keeps only icons and the images pages show; page images go through Git LFS. - The Dockerfile builds the app from the repo root for the docs service (port 10000, the commit and branch build args, the Node 22.23.4 check) and fetches LFS images when the checkout has pointer files. - patches/ carries the react-core scroll-to-bottom fix from #8159 until a release with it is installed. BREAKING CHANGE: showcase/shell-docs is a new app. Its scripts, source layout and dev port (3003) follow the Fumadocs rebuild; see its README. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ss the docs Every docs page was graded against the source in two passes, and its findings fixed: - Accuracy: wrong hook, prop, and option names; defaults the code does not have; samples that did not compile or run; broken links and anchors. - Structure: each page opens on the reader's problem and ends on a result they can check, rewritten to simple-english rules, with no em or en dashes, exclamation marks, or preambles. - Visual: full-width images, code samples cut to the part the prose explains, readable tables, and cards in place of hand-built boxes. - Removed the retired ai-todo-app and ai-powered-textarea tutorials (their URLs already redirect), a stale duplicate useCapabilities page, and four unused snippets. - Build with agents shows MCP setup in one tab per coding tool, and What's new drops the MCP Apps video that no host serves. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code outside showcase/shell-docs read files the old app had. Now: - The showcase shell's search index keeps its "reachable from a sidebar" rules in showcase/scripts/lib/docs-searchable (moved unchanged from the old app, which no longer has them), run with shell-docs as the working directory. The shell image no longer stages shell-docs' lib, scripts and tsconfig. - test_unit-shell-docs runs the new app's checks: showcase data, typecheck, lint, and a compile of every page. - The docs-prompt telemetry pin reads the onboarding events from the new prompt component; verify-shell-docs reads its named snippets; the hosting test checks that showcase-data bundles Angular, not Vue, source. - The config allowlist names next.config.mjs, the Mastra A2UI workflow watches the new snippet renderer, and docs, skills and comments point at the new files. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The docs review had added deprecated v1 imports to 14 pages (the LangGraph agent-native-app tutorial, migrate/1.8.2, and v1 reference samples), and scripts/docs-deprecated-imports-baseline.json may only shrink. Those pages keep their main version, and the baseline drops the 12 entries the review removed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The checkout has Git LFS pointer files for the images in public/, and compiling a page reads the size of each image it shows. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
doc-tests joins every block on a page that shares a title into one file. The built-in agent MCP Apps page now shows a second, alternative route file for Intelligence, so the test compiled both together and failed. Only the first block is a doc test now. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and the public/ cleanup - The Fumadocs scaffold pages under content/ (/docs: a starter quickstart, the theme sheet and the design-ideas pages) and their routes, the /proto variant pages, and the .impeccable design-tool state are prototype leftovers, so they go with the code only they used. - patches/ and patch-package are gone. The scroll-to-bottom fix they carried for @copilotkit/react-core 1.82.0 ships in a release instead. - public/ keeps every file it had on main; only the new icons and logos are added, so no v1 asset URL breaks. The app's .gitattributes, which moved existing webp and svg files into LFS, is gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…he clipboard is blocked The pill was written four times. Three copies awaited navigator.clipboard.writeText unguarded, so a blocked clipboard (some Safari states, embedded webviews) left an unhandled rejection and nothing visible on the home page and in the Ask guide. PromptPill, which already caught the failure and opened the prompt for manual copying, now covers those too: a compact size, a disabled state, a nullable prompt, and an option to drop "View prompt" (the prompt then opens against the pill only when the copy is blocked). The unused Hero and its copy, which pointed at /docs/quickstart.md, are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…section remarkInlineSnippets read an imported snippet's file and, when it didn't exist, inlined nothing and dropped the import, so a typo'd path built cleanly and shipped an empty section. It now renders a "Missing snippet" warning callout naming the file, as <Snippet> does for a missing region, and raises a missing-snippet warning that check-live-mdx turns into a failure. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…l sends unknown answers The card used the tool call's arguments as its defaults without checking them, so features: ["voice"] or starting: "migrate" made "Build my quickstart" throw, and the run waited on the card forever. Each guess is now parsed against the card's own options, and anything else falls back to the card's default. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The allowlist's recognize tier is every real model name the docs may mention, and the docs app's own agent (src/lib/docs-agent.ts) runs on gpt-6-luna, which it didn't list. The validator reads the docs and the starters, not the app's source, so nothing failed; the list was just out of date. Whether it belongs in ship, the tier starters may pin, is a separate call. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…iption
/examples renders the playground, but its metadata came from the hidden
examples.mdx page ("CopilotKit in Action").
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…exports Fumadocs builds a page's processed Markdown from its source plus each remark plugin's edits. remarkInlineSnippets swapped snippet nodes into the tree without telling it, so the export kept the `.mdx` import lines and the snippet tags, and the snippets' heading IDs landed at the same offsets of the page: mid-sentence, inside code, or inside a tag (`<BuildWithAge [#mcp-docs-server]nts />`), which then never inlined. The plugin now embeds each snippet's source (`embedSource`) and drops the imports it removes (`replaceSource`). Framework landings exported their `<FrameworkOverview>` JSX. A remark plugin now writes it out as Markdown: the hero, the capabilities with their links, the CLI and quickstart, and the "Connect your agent" code, with links scoped to the URL's framework. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A nested .oxlintrc.json replaces the root config for its subtree, so the root lint stopped applying copilotkit/no-public-env-shell-read and the correctness and suspicious categories to showcase/shell-docs. Declare them in the nested config with app-relative globs. The guard test passed -c, which turns nested configs off and hid this. Lint the fixtures the way pnpm run lint does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every non-text message part counted as an image and was left out of the request size cap, but the runtime also passes document, audio, video and binary parts to the model, and fetches URL sources. A few hundred bytes of JSON could point the model at large files on every step. Reject any attachment that is not an image with inline data, which is what CopilotChat sends. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With one navbar menu open, hovering another trigger switches the popup to it, but Base UI 1.9 then forgets that a hover opened it. The click that usually follows closed the menu the reader had just reached, so a second click was needed. Give a hover switch the same 500ms grace Base UI already gives a hover that opens a closed menu. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebuild dropped four docs events whose controls still exist. Send them again with the old names and properties, so the PostHog dashboards keep working: - markdown_copied and open_in_llm_clicked from the page actions (Fumadocs MarkdownCopyButton and ViewOptionsPopover) - docs.frontend_selected and docs.framework_selected from the sidebar stack picker The other dropped events belong to controls the rebuild no longer has, so the analytics comment now says which are gone instead of claiming exact parity. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The navbar menus were the only see-through surface in the docs: frosted glass with a sky-to-lilac wash, translucent cards and white glyphs on blue tiles. Their color changed with whatever was behind them, and they broke the design rules every other surface follows. Draw them as the home page draws its card grids: the solid lilac-grey tray with its rim, white cards borderless at rest with the lilac border-action edge on hover, and plain plum glyphs that turn lilac on hover. Drop the unused GlyphTile component and the frost token, and update DESIGN.md to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The repo's docs/ symlink points at showcase/shell-docs, so the root lint also loaded the nested .oxlintrc.json through docs/, where its relative jsPlugins path left the repo and the oxlint job failed. Drop the nested config, as on main, so the root lint applies the root rules to shell-docs again, and point the app's own npm run lint at the root config. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mage
Railway rejects the flag ("flag '--network=none' is not supported"), so
the docs PR preview build fails before it starts. The page-render check
still runs on every image build; it only talks to loopback.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Railway's builder dropped a connection while all 79 LFS objects downloaded at once, and one dropped video failed the build with only "fetch failed". Download six at a time, retry each up to three times, and report the network error that undici keeps in `cause`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The runner copied the whole app, node_modules included, which took about 3 minutes on Railway and made the image large. Build with `output: "standalone"`, traced from the showcase/ root like Turbopack, and copy only the standalone server, static assets, public/, and the src/content and src/data files the app reads at request time. The build no longer needs `npm prune`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Railway's builder dropped the batch request to GitHub on the next build, which had no retry. Every request in fetch-lfs now goes through the same retry, up to four attempts, and reports undici's network error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e UI docs Main added Angular, Vue and React Native to the generative UI component guides, the React Native guide and its reference, while this branch reworded the same paragraphs. The rebase kept this branch's side of each overlapping hunk; this restores main's additions in this branch's style. The image smoke test now looks for the page's new description. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lterable Ports main's change to v1's middleware (1f79b58) into the proxy that replaced it. docs_pageview and seo_redirect now send the caller's IP and user agent, so PostHog geolocates the visitor and its bot filter can read the agent, and set $process_person_profile to false so bots don't mint a person per hit. The cookie becomes ph_docs_id and the redirect id seo-redirect, since PostHog would put an id that already has a person back on identified processing. docs_pageview also carries environment and referrer, as llm_text_fetched does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports main's llms.txt section (#8189) into the rebuilt index: users who want a workspace of AI coworkers get pointed at OpenBot's site and source, the three off-docs links the production docs probe allows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wcase-scripts suite Main added react-native-generative-ui-docs and vue-generative-ui-docs to shell-docs' unit tests, which the rebuilt app no longer runs. They only read the docs pages and package sources, so they move next to the other ported docs tests, in their own docs-content folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main standardized every OpenAI example on gpt-6-luna and made it the only OpenAI model the allowlist ships (cd5fdfa). This branch had pinned gpt-5.4 and gpt-5.4-mini in its new and rewritten samples, so those move to gpt-6-luna too, with the same call shapes main uses: reasoning_effort "none" on ChatOpenAI and on litellm calls (plus allowed_openai_params). The allowlist takes main's tiers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main replaced the ADK placeholder with the real Antigravity mark (f57941b). The mark itself merged into framework-icons.tsx; this takes main's iconKey to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tylerslaton
force-pushed
the
tylerslaton/docs-shell-docs-v2-preview
branch
from
November 10, 2026 22:53
3ab47f3 to
f1a5886
Compare
railway-app
Bot
temporarily deployed
to
showcase / CopilotKit-pr-8214
November 10, 2026 22:53
Destroyed
4 tasks done
Contributor
Author
tylerslaton
added a commit
that referenced
this pull request
Nov 12, 2026
One PR for the docs rebuild. It replaces #8214 and the `tylerslaton/docs-shell-docs-v2` stack (#8320, #8321, #8322, #8325), which had drifted onto two branches with different work on each. Both old branches stay on origin, unchanged, as archives. ## What does this PR do? It replaces `showcase/shell-docs` with the Fumadocs rebuild of docs.copilotkit.ai, in place. There is no second docs app. The pages stay at `showcase/shell-docs/src/content`, so git records them as edits to the files that were already there. The plan is to merge this into `main` and then rebase `2.0.0` on top. ### How this branch was put together - **Base:** today's `main` (`4d647b76e8`). - **#8214's 64 commits**, unchanged. `main`'s 8 newer commits don't touch the docs or the showcase, so they replayed cleanly. - **The stack's 19 commits** from `docs-shell-docs-v2`, on top. Where they met work that #8214 had and the stack didn't, the conflicts were resolved by hand, and each commit message says what changed: - **Model pins.** The stack's setup snippets were written before #8214 pinned `gpt-6-luna`. A new last commit pins the 32 setup files the same way the rest of the docs and each integration's own agent code do. - **Angular.** `main`'s native generative UI guide (`/angular/guides/generative-ui-components`) moves to `/angular/generative-ui/native`, like the other Angular guides. It gets a redirect and a row in the Angular generative UI overview. - **Dark mode.** The `globals.css` sync and the scroll fix are applied on top of `main`'s dark mode. They also cover `openai-agents-python`, which `main` added since. - **Checked:** every commit of both old branches has a counterpart here, and a file-by-file three-way check found no content from either branch missing. The few differences are newer `main` work (for example `setup-dotnet` v6.1.0), #8214's adaptations to `main`, and the model pins. ### What's in it - **The new app.** It has the Spacious layout and brand theme, and a framework and frontend picker that opens the chosen frontend's page. Each frontend gets its own sidebar (Slack, Teams, Angular, Vue, React Native). - Ask CopilotKit runs in the sidebar and at `/ask`. - It adds the standard catalog Story pages and an examples playground. That playground loads its catalog, generated from the showcase data, only on `/examples`. - It also brings Orama search that keeps the reader's scope, an MCP server, llms.txt and Markdown routes (with the demo and setup code inlined), telemetry, and the legacy redirect tables. - **Pages.** `main`'s pages change in only two mechanical ways: page imports are dropped, and pages with sub-pages move to `X/index.mdx` (13 renames). On top of that, the docs review's fixes are a separate diff, as are a round of accuracy and link fixes from code review. - **`public/`.** It keeps every file it had on `main`. Only new icons and logos are added. - **Code that read the old app's files.** The showcase shell's search index keeps the old sidebar-reachability rules in `showcase/scripts/lib/docs-searchable`, with the old app's tests ported next to them. The shell image and the workflows, tests, skills and docs that named old paths are updated too. ### From the stack (#8320–#8325) - **One page per feature.** Each framework's copies of the shared pages fold into the shared pages, which gate sections on the showcase's supported features. The setup steps the copies carried move into each integration's `docs/setup/*.mdx`. Stale URLs redirect, and a folded page a framework can't show sends readers to that framework's overview. - **Frontends by one rule.** Each frontend gets the pages it has, and each page is listed and indexed once. The showcase decides a frontend's own feature pages too. - **Angular and React Native at React's URLs.** Angular's eight combined guides become pages at React's slugs, with one-hop redirects from `/angular/guides/*`. React Native gets 19 feature pages. The showcase search reads both from their React slugs. The app frontends' "Using these docs" pages and Angular's feature catalog page are gone. - **Showcase demos.** Full-page chats fill the page in every integration. Every integration's `globals.css` is now langgraph-python's, `create-integration` copies it, and a test fails on drift. The three tall demo pages scroll inside the page. - **CrewAI docs links** point at the folded pages, and their test finds pages in the `(shared)` route group. ### Review fixes (two code reviews) - **Security:** Ask's API route now accepts only `info`, `agent/run`, `agent/connect` and `agent/stop`, so the thread list, read and wipe calls are rejected. - The CopilotKit packages are on 1.84.1, which has the runtime's thread-owner check and the scroll-to-bottom fix (#8159), so no patch is needed. - Every run is capped: a limit across all readers on top of the per-IP one, size caps on context, state, tools and the whole request, the docs' own tools only, and 10 steps. - **Routing:** - Legacy `/docs*` URLs redirect as on `main`, and unknown URLs answer 404. - Framework landings render instead of redirecting, `/intelligence` is a 301 again, and Google Antigravity is back. - Each framework's docs mode now comes from its manifest. - **Deploy:** - The docs deploy check now verifies the runtime config the new app serves (`/api/telemetry/config`, with a real PostHog key required in production). The old app's server-written Clerk config, which the new app doesn't have, is no longer required. - The Docker image smoke-tests itself before it is pushed and runs as `node`. - Hosts (sign-up, Cloud, showcase, demos) come from the environment per request, so staging no longer links to production. - **CI:** `test_unit-shell-docs` builds and serves the app, then runs the redirect check and a request to every page. The telemetry emitter now finds the new app's `trackEvent` calls. ### Carried over from `main` The rebuild uses `main`'s shared theme bridge from `showcase/integrations/_shared/ts/theme.ts`. Where `main` had changed the old app or the same pages, its changes are carried into the rebuild in their own commits: - **Models:** `main` moved every OpenAI sample to `gpt-6-luna` and made it the only OpenAI model the allowlist ships. This branch's samples follow, with `main`'s `reasoning_effort="none"` call shapes. - **Generative UI:** `main`'s Angular, Vue and React Native additions to the component guides, the React Native guide and its reference are kept. Its two docs-pinning tests (`react-native-generative-ui-docs`, `vue-generative-ui-docs`) now run in the showcase-scripts suite, under `__tests__/docs-content`. - **Telemetry:** `main`'s personless, bot-filterable `docs_pageview` and `seo_redirect` (cookie `ph_docs_id`) are ported into `src/lib/telemetry/proxy.ts`. - **llms.txt:** `main`'s OpenBot section is in the new index. - **Antigravity:** the real Antigravity mark from `main` is used. ## What merging does - **Deploys:** `showcase_build` redeploys shell-docs, so docs.staging.copilotkit.ai serves the new app. It also redeploys shell, dojo, dashboard, the harness and every integration whose files changed. Production changes only on promote. - **Telemetry:** the registry update after merge will drop 9 docs events the new app doesn't send. Examples: `markdown_copied`, `open_in_llm_clicked`, `docs.framework_selected`, `docs.frontend_selected`. ## Not in this PR - A spend-capped OpenAI key and a shared rate-limit store for Ask; the code limits are per instance. Also confirm `OPENAI_API_KEY` is set on the Railway docs service. - Moving the live layout out of `src/proto`. - Held back: the Strands `threads-import` note on `a2uiGenerationToolNames` waits for #8137. - Two showcase integrations still link to docs pages that no longer exist in `docs-links.json`: spring-ai (2 links) and built-in-agent (1). No test checks them. ## Verification Run on this branch: - **shell-docs** (the `test_unit-shell-docs` steps): - `showcase-data`, `tsc`, oxlint, the LFS fetch and `next build` pass. - All 616 pages compile. - Against `next start`: `check-redirects` passes 1034/1034, and `check-live-pages` 506/506. - **Repo suites:** - showcase-scripts 3464/3464, including the `globals.css` drift guard across all 23 integrations and `main`'s two generative UI docs tests. - The CrewAI docs-link tests pass for both CrewAI integrations. - The packaged-skill drift checks pass 8/8. - The deprecated-import ratchet passes 8/8. Its baseline is regenerated for the moved pages and shrinks from 81 to 74 entries, with nothing new taught. - The model-name and Intelligence env-name checks are clean. - **Nothing lost:** - `git range-diff` pairs all 64 of #8214's commits unchanged. 72 of the stack branch's 75 have a counterpart. The other three are a `setup-dotnet` comment fix (superseded by `main`'s v6.1.0 pin), its `gpt-6-luna` allowlist commit (covered by #8214's own), and the scroll fix, rewritten here on top of dark mode. - A three-way check of every file either branch changed found nothing missing. The differences that remain are newer `main` work, the folded pages, and the model pins. ## Related PRs and Issues - Replaces #8214 (and #8160 before it), and the stack #8320, #8321, #8322 and #8325, which merged into `tylerslaton/docs-shell-docs-v2`. - Supersedes #8162 (its Dockerfile and LFS fetch are here). ## Checklist - [x] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [x] If the PR changes or adds functionality, I have updated the relevant documentation - [x] If the PR contains a breaking change, the title has `!` (for example `feat(react-core)!: ...`) and the description has a `BREAKING CHANGE:` line with migration steps. See [VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md) - [x] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone) BREAKING CHANGE: `showcase/shell-docs` is a new app. Its scripts, source layout and dev server follow the Fumadocs rebuild; run it with `npm install && npm run dev` in `showcase/shell-docs` (see its README). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #8160, which is closed. This PR has the same commits on a new branch (
tylerslaton/docs-shell-docs-v2-preview), opened so Railway creates the docs PR preview; Railway only creates one when a PR is opened.What does this PR do?
It replaces
showcase/shell-docswith the Fumadocs rebuild of docs.copilotkit.ai, in place. There is no second docs app. The pages stay atshowcase/shell-docs/src/content, so git records them as edits to the files that were already there. The plan is to merge this intomainand then rebase2.0.0on top.What's in it
/ask./examples.main's pages change in only two mechanical ways: page imports are dropped, and pages with sub-pages move toX/index.mdx(13 renames). On top of that, the docs review's fixes are a separate diff, as are a round of accuracy and link fixes from code review.public/. It keeps every file it had onmain. Only new icons and logos are added.showcase/scripts/lib/docs-searchable, with the old app's tests ported next to them. The shell image and the workflows, tests, skills and docs that named old paths are updated too.Review fixes (two code reviews)
info,agent/run,agent/connectandagent/stop, so the thread list, read and wipe calls are rejected./docs*URLs redirect as onmain, and unknown URLs answer 404./intelligenceis a 301 again, and Google Antigravity is back./api/telemetry/config, with a real PostHog key required in production). The old app's server-written Clerk config, which the new app doesn't have, is no longer required.node.test_unit-shell-docsbuilds and serves the app, then runs the redirect check and a request to every page. The telemetry emitter now finds the new app'strackEventcalls.Rebased on
main(November 10)Rebased onto
mainatf5f56ff39b, after #8098 (dark mode) merged. The rebuild now uses its shared theme bridge fromshowcase/integrations/_shared/ts/theme.ts. Wheremainhad changed the old app or the same pages, its changes are carried into the rebuild in their own commits:mainmoved every OpenAI sample togpt-6-lunaand made it the only OpenAI model the allowlist ships. This branch's samples follow, withmain'sreasoning_effort="none"call shapes.main's Angular, Vue and React Native additions to the component guides, the React Native guide and its reference are kept. Its two docs-pinning tests (react-native-generative-ui-docs,vue-generative-ui-docs) now run in the showcase-scripts suite, under__tests__/docs-content.main's personless, bot-filterabledocs_pageviewandseo_redirect(cookieph_docs_id) are ported intosrc/lib/telemetry/proxy.ts.main's OpenBot section is in the new index.mainis used.What merging does
showcase_buildredeploys shell-docs, so docs.staging.copilotkit.ai serves the new app. It also redeploys shell, dojo, dashboard and the harness, becauseshowcase/scripts/**changed. Production changes only on promote.markdown_copied,open_in_llm_clicked,docs.framework_selected,docs.frontend_selected.Not in this PR
OPENAI_API_KEYis set on the Railway docs service.src/proto.threads-importnote ona2uiGenerationToolNameswaits for feat(deps): bump @ag-ui/a2ui-middleware to 0.0.15 #8137.Verification
Run on this branch:
npm cipasses on npm 10 and 11, andnext build,tscand oxlint pass.next start:check-redirectspasses 1000/1000, andcheck-live-pages848/848./docs/quickstartreturns a 301 to/quickstart./no-such-pagereturns 404..mdexports have no import lines and no raw JSX.Related PRs and Issues
Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdBREAKING CHANGE:
showcase/shell-docsis a new app. Its scripts, source layout and dev server follow the Fumadocs rebuild; run it withnpm install && npm run devinshowcase/shell-docs(see its README).🤖 Generated with Claude Code