Skip to content

docs: redesign the docs shell, component pages and first steps - #2346

Merged
kotAPI merged 4 commits into
mainfrom
docs/redesign
Nov 5, 2026
Merged

kotAPI merged 4 commits into
mainfrom
docs/redesign

Conversation

@kotAPI

@kotAPI kotAPI commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Docs only (docs/). Continues the docs showcase plan: the docs pages get the same quality as the October landing page.

Shell

  • Sidebar grouped by what components are for (eight groups in app/docs/componentGroups.ts, collapsible, with counts), a search field on top, New/Preview as small tags.
  • Search palette over every page (Command.Dialog, Cmd/Ctrl+K), with each component's one-line purpose as keywords so "modal" finds Dialog.
  • Top bar: pinned @radui/ui version linking to the changelog, search button.
  • Phones: the sidebar is a Drawer from the left instead of a full-page list.
  • Table of contents with a rail that fills as you read; the blueprint grid behind articles is gone; previous/next cards under every article.

Component page template

Breadcrumb, copyable import line, Source / Report an issue / Changelog links, a preview stage with appearance and accent controls (a nested Theme around the example, with the light-token fix shared from the landing playground) and an Open in playground link, React/Styles tabs, line-numbered code that no longer wraps, part chips under the API heading, API tables without the bordered chips, one type scale (h2 1.5rem, h3 1.125rem, body 0.95rem) shared with MDX. The 70+ pages pick this up through Documentation.js with no content edits.

Pages

  • /docs/components: grouped index, one card per component with its purpose.
  • Installation: install, which setup to pick (Clarity, Tailwind preset, headless), Next.js layout, first component, troubleshooting.
  • Introduction: shorter.

Status tags

Every documented component is stable except Command (still WIP in Storybook). New marks what 1.2.0 added: DirectionProvider and Slot.

Checks

pnpm lint, pnpm check:examples, pnpm build (boundary, registry, llms, 306 pages prerendered, static check) and the contrast check (302 routes in both themes) all pass. The contrast fixes include three groups that predate this PR: changelog links in blue-900, MDX list items and blockquotes in gray-900.

Checked at 1512, 1024 and 390 px in both themes.

46 component pages carried a Preview tag and five a New tag that dated from
1.0. Every documented component is in RELEASED_COMPONENTS and out of the
Storybook WIP category except Command, which stays Preview. New now marks
what 1.2.0 added: DirectionProvider and Slot.
Shell: the sidebar groups the components by what they are for (eight
groups from app/docs/componentGroups.ts, collapsible, with counts), starts
with a search field and gets a Command palette over every page on Cmd+K;
the top bar shows the pinned version and a search button; phones get a
Drawer instead of a full-page list; the table of contents has a rail that
fills as you read; the blueprint grid behind articles is gone; every page
ends with previous and next cards.

Component page: breadcrumb, a copyable import line, Source / Report an
issue / Changelog links, a preview stage with appearance and accent
controls (a nested Theme around the example) and an Open in playground
link, React / Styles tabs, line-numbered code that no longer wraps, part
chips under the API heading, API tables without the bordered chips, and
one type scale (h2 1.5rem, h3 1.125rem, body 0.95rem) shared with MDX.

Pages: /docs/components is a grouped index with a one-line purpose per
component; Installation covers install, which setup to pick, the Next.js
layout, a first component and troubleshooting; Introduction is shorter.
Sidebar counts and code line numbers were below 4.5:1 in light mode (and
the numbers in dark), and three groups predate the redesign: changelog
links in blue-900, MDX list items and blockquotes in gray-900. All now use
the 950 steps or primary text at 90%.
@changeset-bot

changeset-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 89afd77

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c3e4bfa4-7f60-4dba-991a-1147f57fc46c
Commits

Reviewing files that changed from the base of the PR and between 47693b3 and 89afd77.

Files selected for processing: 33

  • docs/app/docs/componentGroups.ts
  • docs/app/docs/components/[component]/changelog/page.tsx
  • docs/app/docs/components/page.tsx
  • docs/app/docs/components/shared/ariaReferences.js
  • docs/app/docs/docsNavigationSections.tsx
  • docs/app/docs/first-steps/changelog/ChangelogMarkdown.tsx
  • docs/app/docs/first-steps/changelog/page.tsx
  • docs/app/docs/first-steps/installation/content.mdx
  • docs/app/docs/first-steps/introduction/content.mdx
  • docs/app/globals.css
  • docs/app/landingComponents/ThemePlayground.tsx
  • docs/components/Main/Main.js
  • docs/components/Main/NavBar/NavBarContext.tsx
  • docs/components/Main/NavBar/helpers/NavRoot/index.tsx
  • docs/components/Main/NavBar/index.js
  • docs/components/docsHelpers/DocsPager.tsx
  • docs/components/layout/Documentation/ComponentHeader.tsx
  • docs/components/layout/Documentation/DocsPageContext.tsx
  • docs/components/layout/Documentation/DocsShell.tsx
  • docs/components/layout/Documentation/DocsTableOfContents.tsx
  • docs/components/layout/Documentation/Documentation.js
  • docs/components/layout/Documentation/helpers/CodeBlock.js
  • docs/components/layout/Documentation/helpers/ComponentHero/ComponentHero.js
  • docs/components/layout/Documentation/helpers/DocsTable.js
  • docs/components/layout/Documentation/shared.js
  • docs/components/navigation/Category.tsx
  • docs/components/navigation/NavItem.js
  • docs/components/navigation/Navigation.tsx
  • docs/components/navigation/SearchPalette.tsx
  • docs/components/navigation/SearchTrigger.tsx
  • docs/mdx-components.tsx
  • docs/utils/radVersion.ts
  • docs/utils/useLightTokens.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The docs snippet checker reads every "@radui/ui/..." string as a subpath to
verify, and the template "@radui/ui/${name}" failed it in CI.
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Coverage

This report compares the PR with the base branch. "Δ" shows how the PR affects each metric.

Metric PR Δ
Statements 89.2% +0.00%
Branches 76.82% +0.00%
Functions 83.92% +0.00%
Lines 90.84% +0.00%

Coverage improved or stayed the same. Great job!

Run npm run coverage:ci locally for detailed reports and target untested areas to raise these numbers.

@kotAPI
kotAPI merged commit d08557f into main Nov 5, 2026
9 checks passed
@kotAPI
kotAPI deleted the docs/redesign branch November 5, 2026 13:59
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