Skip to content

Unify shell docs theme with CopilotKit website - #5842

Closed
tylerslaton wants to merge 7 commits into
mainfrom
codex/shell-docs-theme-unification
Closed

tylerslaton wants to merge 7 commits into
mainfrom
codex/shell-docs-theme-unification

Conversation

@tylerslaton

Copy link
Copy Markdown
Contributor

Summary

  • Rebase shell-docs chrome, navigation, sidebar, content cards, demo tabs, and dark-mode surfaces onto the CopilotKit website and shadcn theme vocabulary.
  • Align framework overview, landing, reading, reference, and shared MDX demo surfaces with the same tokenized theme.
  • Bring embedded integration previews onto the docs theme so iframe demos do not visually drift from the shell.

Why

  • The docs had accumulated incremental styling overrides that made active states, gradients, dark mode, sidebar folders, and demo previews inconsistent with the website.
  • Centralizing the visual language makes the remaining design iteration smaller and easier to review.

How

  • Centralized theme tokens and shell-docs class hooks in showcase/shell-docs/src/app/globals.css.
  • Updated nav/sidebar/framework picker/search/tabs/cards/callouts/code/demo components to consume those tokens.
  • Added shared themed demo frame/nav icon helpers and removed stale stored-framework and mobile footer styling.
  • Updated integration app globals/layouts used by embedded previews.

Validation:

  • git diff --check origin/main...HEAD
  • npm --prefix showcase/shell-docs run lint
  • npm --prefix showcase/shell-docs run test
  • npm --prefix showcase/shell-docs run typecheck
  • npm --prefix showcase/shell-docs run build

Note: I attempted Nx first with pnpm nx show project @copilotkit/showcase-shell-docs --json, but local pnpm attempted a non-interactive reinstall and failed with ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY, so I used the shell-docs npm scripts for validation.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 41 services digest-pinned.

Run 2026-07-07 11:58:28 PDT — 0 finding(s).

BenTaylorDev added a commit that referenced this pull request Oct 5, 2026
…#7611)

## What

Adds a **Community frameworks** page at `/community-frameworks`. It says
what "community" means for a community-built frontend package, and lists
those frameworks:

- tested with one stated `@copilotkit/core` version
- updates are best effort, with no promised response time
- releases on its own schedule, never blocking CopilotKit releases
- each package's README is its setup guide; the CopilotKit documentation
does not cover community packages

**The framework table launches empty.** Svelte (#5905, for #310) gets a
row once its package lands under `community/` (the folder and its
contract landed in #7616), not while it is still a pull request. The
page hides its page actions (the copy-prompt widget) with
`hidePageActions: true`, as 13 other pages do.

## How readers reach it

1. **Root sidebar, "Other" section.** That section is hand-curated in
`normalizeSidebarNav` (`src/lib/docs-render.tsx`), so a `meta.json`
entry alone never shows it. The page is added there after "Open-source
telemetry", using the same lookup as telemetry. It is also added to
`docs/meta.json`, which is what puts it in the nav tree.
2. **Site search.** The search index only keeps pages that some sidebar
can reach (`search-index-navigability.test.ts`), so (1) is what makes it
searchable.
3. **Frontend picker.** A muted "Community frameworks →" link sits at
the bottom of the picker, below the coming-soon channels. Clicking it
sends `docs.frontend_picker.community_frameworks_clicked` (with
`from_frontend` and `from_path`), so the clicks count as a demand signal
for community frameworks. This is a low-stakes link, so it has no
capture test. The existing `docs.frontend_selected` and
`docs.framework_selected` names are unchanged.

## Testing

All in a fresh worktree of current `main` with a clean `npm ci` of
`showcase/shell-docs`:

- `npm run pretest` (the generators): success
- `tsc --noEmit`: success
- `oxlint` on the two changed source files: 0 errors. The one warning
(`isSection`, `docs-render.tsx:1558`) is not in this diff.
- `oxfmt --check` on the changed source files: clean
- `vitest run`: **1105 passed**, 3 failed. The 3 failures are all in
`public-assets.test.ts`, which checks that PNGs start with the PNG
signature. My worktree had no Git LFS objects, so the files were
pointers: the test read `118 101 114 115` (`vers`, from `version
https://git-lfs…`). CI fetches LFS, so these do not fail there.
- Generated search index: contains `/docs/community-frameworks` → public
href `/community-frameworks`.
- **Rendered in the dev server** (`next dev --webpack`):
- `GET /community-frameworks` returns 200 with title "Community
frameworks", and every section is present. After the second commit: the
heading reads "What community means", the table has a header and no
rows, there is no #5905 link, and the copy-prompt widget
(`docs-page-tools`) is gone.
- The sidebar on `/webmcp` and on the page itself lists, under "Other":
`/telemetry` "Open-source telemetry", then `/community-frameworks`
"Community frameworks".
- Frontend-scoped pages such as `/vue` have no "Other" section, so the
picker link is the way in from there.
- Conflicts: this branch adds no merge conflicts to the open PRs that
touch the same files (#7471, #7231, #5842). Their conflict sets against
this branch match their conflict sets against `main`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a “Community frameworks” link to the framework picker sidebar.
Selecting it opens the community frameworks documentation and closes the
picker.
* Added a documentation page describing community package maintenance
and release expectations, linking to package READMEs for setup, and
explaining how to request or build a framework package. The frameworks
table currently has no entries.
* Added the page to the “Other” section of the documentation navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant