Repository navigation
feat(app): add handbook tab and light-mode code colors - #4
Merged
Merged
Conversation
Adds a /handbook section built from MDX under content/handbook, with a section tree on the left, an "On this page" heading tree on the right and a bottom tab bar on small screens. Adds a handbook header tab (moved into the hamburger menu on phones), heading anchors via gatsby-remark-autolink-headers, a Handbook project card, placeholder pages, and the OpenSpec specs for handbook and site-navigation. Also refreshes the Browserslist database. Co-authored-by: Cursor <cursoragent@cursor.com>
Light mode code blocks get a soft grey background with a border and a11y-light syntax colors (every token at least 4.5:1), and inline code gets a light tint. Dark mode keeps Okaidia. Adds the code-highlighting OpenSpec spec. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Adds a handbook section to the website, with tree-style navigation and an "On this page" heading tree, and makes code blocks readable in light mode.
Handbook
/handbooksection built from MDX inapps/app/content/handbook/. Pages live in three sections (Concepts, How-tos, How it works) at/handbook/<section>/<page>. They're placeholders for now ("To be written.").@mui/x-tree-viewv8, the last major that supports MUI 5).gatsby-remark-autolink-headers. Posts are unchanged visually.Light-mode code colors
Other
caniuse-lite1.0.30001818).handbook,site-navigationandcode-highlighting, and archives both changes underopenspec/changes/archive/.Testing
moon run app:typecheck, ESLint, Prettier andmoon run app:buildpass. The sitemap lists the 7 handbook routes.#headingURLs