You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the HTML theme work on phones, and give it some life - #3
The HTML theme didn't deal well with smaller screens: on a phone the site navigation sat at the very bottom of the page with no menu, "On this page" was hidden below desktop width, and parameter descriptions could be squeezed into a one-character column. It also read as very bare.
Now the navigation is a menu drawer on phones and a sticky sidebar from 60rem, and "On this page" stays in reach under the header as you read (a side panel at laptop width, a column on wide screens). Signatures are larger and wrap with a hanging indent, examples scroll instead of breaking words, parameters sit over their descriptions, and headings look the same on every page. A few small touches add some life: pages change in place where browsers support view transitions, the member a link lands on glows briefly, kinds are marked in the colors their names have in code, and links, rails and dialogs respond softly. All movement respects reduced motion; Firefox and Safari fall back to plain navigation.
It also fixes three rendering bugs the review turned up: type parameters' constraints lost their closing > (R extends ArrayLike<T), summaries gained a space before inline code (function .), and members inherited from dependencies linked to node_modules paths that don't exist in the repository.
Checked on the cheerio, domhandler and parse5 docs: no page overflows horizontally at 320, 375 or 1024px, in light and dark.
The theme had no navigation on small screens, signatures were its smallest
text, and headings changed style from page to page. Reviewed over seven
rounds by three models against the best documentation sites.
Also fixes type parameters' constraints losing their closing bracket,
stray spaces around inline code in summaries, and source links into
dependencies' node_modules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unrestricted same-origin prerendering can trigger credentialed requests to authored URLs before a click, and the ArrowDown handler can interrupt input-method composition.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The root-hosted prefetch rule can trigger credentialed requests to unrelated application routes on hover, while long index names and source filenames can cause horizontal overflow on mobile.
The source label is now a flex item in .member-header, but unlike .member-name it retains the automatic min-content minimum width. A source filename with a long unbroken segment can therefore exceed the phone viewport: inherited overflow-wrap: break-word does not reduce that minimum, and flex-wrap only moves the oversized item onto another line. Add min-width: 0 here so the label can shrink and wrap instead of creating horizontal page overflow.
Prevent long index names from widening the mobile grid
assets/style.css:853
Below the 36rem container breakpoint, this grid has an implicit auto column whose minimum is its items' min-content width. Index names are rendered without <wbr> in sectionIndex, and the new overflow-wrap: break-word does not reduce their min-content width. An identifier wider than a phone's content area therefore widens the grid and causes horizontal overflow instead of wrapping. Give the stacked grid a minmax(0, 1fr) column; the existing container rule can still replace it with two columns.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The broad code a selector can prerender authored raw HTML links such as /logout with credentials on hover, so destinations need to be restricted to generated page URLs.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Restrict prerendering to generated page links
assets/main.js:154
The new code a selector also matches authored raw HTML preserved by the renderer (src/render/html.ts:187,488), not just generated type links. When docs are hosted at /, hovering an authored <code><a href="/logout">Log out</a></code> can therefore trigger a credentialed prerender request before a click. Restrict destinations to the router's actual generated page URLs rather than inferring them from CSS selectors.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed to evaluate the risk of credentialed prerendering to same-origin pages outside the documentation build before a user clicks a link.
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
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.
The HTML theme didn't deal well with smaller screens: on a phone the site navigation sat at the very bottom of the page with no menu, "On this page" was hidden below desktop width, and parameter descriptions could be squeezed into a one-character column. It also read as very bare.
Now the navigation is a menu drawer on phones and a sticky sidebar from 60rem, and "On this page" stays in reach under the header as you read (a side panel at laptop width, a column on wide screens). Signatures are larger and wrap with a hanging indent, examples scroll instead of breaking words, parameters sit over their descriptions, and headings look the same on every page. A few small touches add some life: pages change in place where browsers support view transitions, the member a link lands on glows briefly, kinds are marked in the colors their names have in code, and links, rails and dialogs respond softly. All movement respects reduced motion; Firefox and Safari fall back to plain navigation.
It also fixes three rendering bugs the review turned up: type parameters' constraints lost their closing
>(R extends ArrayLike<T), summaries gained a space before inline code (function .), and members inherited from dependencies linked tonode_modulespaths that don't exist in the repository.Checked on the cheerio, domhandler and parse5 docs: no page overflows horizontally at 320, 375 or 1024px, in light and dark.
Council review
Rounds: 7
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code