Skip to content

doc: add theme keyboard shortcut - #1537

Draft
TheOrcDev wants to merge 1 commit into
nextfrom
codex/docs-theme-hotkey
Draft

doc: add theme keyboard shortcut#1537
TheOrcDev wants to merge 1 commit into
nextfrom
codex/docs-theme-hotkey

Conversation

@TheOrcDev

Copy link
Copy Markdown
Collaborator

Summary

  • add a global d keyboard shortcut through Next.js client instrumentation
  • delegate light/dark changes to Fumadocs' existing theme controls
  • ignore editable targets, modified keypresses, prevented events, and key repeats

Why

This keeps Fumadocs as the single owner of theme state and persistence while adding keyboard access without another theme provider, a direct next-themes dependency, or React effect lifecycle code.

Testing

  • pnpm --filter docs test (11 test files, 95 tests)
  • Prettier check for src/instrumentation-client.ts
  • isolated TypeScript check for src/instrumentation-client.ts

Breaking changes

None.

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nuqs Ready Ready Preview Aug 7, 2026 10:14pm

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f33f3508-c6ab-48e9-9a03-f18f87edd403

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Comment @coderabbitai help to get the list of available commands.

@franky47 franky47 added the documentation Improvements or additions to documentation label Aug 7, 2026
@franky47 franky47 added this to the 🪵 Backlog milestone Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants