Skip to content

Add dark mode support to docs#341

Merged
koic merged 1 commit into
modelcontextprotocol:mainfrom
atesgoral:dark-mode
May 11, 2026
Merged

Add dark mode support to docs#341
koic merged 1 commit into
modelcontextprotocol:mainfrom
atesgoral:dark-mode

Conversation

@atesgoral
Copy link
Copy Markdown
Contributor

@atesgoral atesgoral commented May 10, 2026

Summary

  • add switchable light and dark Just the Docs stylesheets
  • default docs theme to the user's system color scheme and persist manual preferences in localStorage
  • add header icon controls for theme cycling and GitHub

Icon Sources

  • GitHub icon: Simple Icons (github.svg)
  • Theme icons: Lucide (monitor, sun, moon)

Verification

  • BUNDLE_GEMFILE=/tmp/ruby-sdk-docs-bundle.gqtVn4/Gemfile bundle exec jekyll build --source docs --destination /tmp/ruby-sdk-docs-pr-build --config docs/_config.yml,/tmp/ruby-sdk-docs-local.yml --trace
  • verified served header controls, SVG assets, and compressed theme toggle behavior locally

System

image

Light

image

Dark

image

Responsive

image

@atesgoral atesgoral marked this pull request as draft May 10, 2026 15:01
@atesgoral atesgoral marked this pull request as ready for review May 10, 2026 15:10
Comment thread docs/_includes/head_custom.html Outdated
@koic koic merged commit 5153c39 into modelcontextprotocol:main May 11, 2026
11 checks passed
@koic
Copy link
Copy Markdown
Member

koic commented May 11, 2026

Thanks!

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.

2 participants