Repository navigation
chore(deps): upgrade Fumadocs to 16.17.9 and drop the workarounds it fixes - #298
Conversation
Move fumadocs-core and fumadocs-ui to 16.17.9 and fumadocs-mdx to 15.4.10. 16.17.10 is newer but under the three-day release age gate, so it cannot be installed yet. The upgrade changes four things the engine relied on: - remarkStructure and remarkLLMs now slice their Markdown from the authored source and drop the stringify and mdast-util-to-markdown options. The Experimental exclusion from search moves to a plugin that drops source positions inside the block, the base path for twin links moves to a plugin that edits each URL in the source, gate markers are rewritten to their tags in the twin, and a callout's alert marker is left out of its search record. The replaceSource each plugin edits through can be passed in, because the app and this package can resolve different copies of fumadocs-core. - The search dialog already carries the combobox, listbox and option roles, so the local combobox wiring goes. The result count, focus return and text-only rendering stay, and results move to the new search hook with table rows rendered as cells. - Results are no longer wrapped in mark elements; matches are highlighted with the CSS Custom Highlight API, so the axe pass no longer looks for a highlighted match. - A table row is now one search record holding a Markdown table, so sanitizing keeps its line breaks. Assisted-by: AI
… Fumadocs upgrade Fumadocs 16.17.9 marks the collapsed sidebar and its hidden open pill inert, which removes them from the focus order and the accessibility tree. The two visibility rules that did the same are dead, so remove them. Point the notes on the forked sidebar folder, the scrolling table and the search provider test at the pinned version instead of old ones. Assisted-by: AI
The search listbox findings it held, a listbox wrapping a second listbox and a scrollable results region that was not keyboard focusable, are gone with the Fumadocs 16.17.9 search dialog. The axe pass reports no WCAG violations with the dialog open, in light, dark, more-contrast and mobile modes. Assisted-by: AI
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
DOCS-1166 SC 2.1.1: search dialog's scrollable results region is not keyboard-focusable
Found when coder/docs-engine#204 (DOCS-1039) extended the axe pass to open the search dialog with a query. The scan reports This is likely the same structural problem as the Done when the Created by Coder Agents on behalf of @Vigilante*.* DOCS-1165 SC 1.3.1 / 4.1.2: search dialog listbox wraps a second listbox, so axe reports aria-required-children
Found when coder/docs-engine#204 (DOCS-1039) extended the axe pass to open the search dialog, type a query, and select a result. The scan reports Fix: put the listbox role on exactly one element whose direct children (or Done when the Created by Coder Agents on behalf of @Vigilante*.* DOCS-1468 Upgrade Fumadocs to 16.17.x and drop the workarounds it fixes
The engine pins Fumadocs 16.15.14. Scope
Done when
|
nickvigilante
left a comment
There was a problem hiding this comment.
I checked the PR's claims against the code and against the fumadocs-core 16.17.9 and fumadocs-ui 16.17.9 sources. Most of it holds: the versions and the release-age gate, the empty axe allowlist, the removed APIs (nothing outside fixtures still uses useDocsSearch, filterElement or mdast-util-to-markdown), the Premium callout staying out of search (its nodes have no positions), and search results never rendering raw HTML. Table rows always reach our Cells renderer and never fumadocs' toJsx(hastContent). There is one regression in the search exclusion that needs a fix before merge.
Experimental text leaks into search inside a blockquote
On main, remarkStructureOptions made Experimental a block that stringifies to nothing, so its text stayed out of every search record, including a parent's. This PR replaces that with remarkExcludeExperimentalFromSearch, which only strips the positions of the block's children. In 16.17, remarkStructure builds a record by slicing the authored source of the indexed node (s.stringify(node) in remark-structure.js). So when a parent is indexed as one record, its slice still contains the hidden text. blockquote is in the default types, and a plain blockquote is not split into child records the way lists, <details>, tabs and callouts are.
I compiled this through coderMdxOptions (the runtime context, so the block compiles to Experimental) with experiments: { f: "F" } in the frontmatter:
> Quote intro.
>
> <div data-feature="f">
>
> SECRET_BQ.
>
> </div>
Public.file.data.structuredData.contents[0].content is:
> Quote intro.\n>\n> <Experimental flag="f" displayName="F" href="/install/releases/feature-stages/">\n>\n>\n> SECRET_BQ.\n>\n> \n> </Experimental>
The same probe stays clean for a gate at top level, in a list item, in <details>, in a tabs block, around a table, around a heading, and inside a > [!NOTE] callout. Only the plain blockquote leaks. This only affects the in-product embed, because coder.com and offlinedocs compile ExperimentalNote, which is meant to be searchable. I found no gate inside a blockquote in a coder/coder docs checkout from 2026-10-27, so I believe nothing is exposed today. The regression is still real.
The record above also shows a second problem. The twin-tag edits from rewriteTwin in remark-conditional-content.ts call replaceSource without a namespace, so they apply to every stringifier, search included. That is why <Experimental …> appears in the search record. A Premium gate inside a blockquote would put <PremiumNote>/<PremiumCallout> and the default callout text ("Requires a Coder Premium license…") into search the same way. That contradicts "a PremiumCallout is a label, not content" and the e2e assertion that excludes it.
Suggested fix:
- Keep the twin-tag rewrites out of search records. Either scope them to the twin stringifier, if fumadocs-mdx's processed-Markdown stringifier has its own namespace, or add a
"search"edit for the same nodes that leaves the gate's markers out. - In
remarkExcludeExperimentalFromSearch, remove the block from search output with a"search"-namespacedreplaceSourceedit that replaces the block's source with"", instead of relying only on stripped positions. That way a parent's slice cannot carry the text. The block's own node has no position (it comes fromelement()), so the edit has to target its first and last positioned descendants, or the gate's opener and closer nodes, which do have positions. - Add the blockquote case above to
mdx-config.e2e.test.tsfor bothExperimental(runtime context) and a Premium gate, asserting that neither the body nor the callout text appears instructuredData. Check that both tests fail on the current branch head first.
Minor
In SearchResultItem's non-table branch, the {...props} spread now comes after renderMarkdown={renderSearchMarkdown}, so a caller that passes renderMarkdown would replace the safe renderer. Fumadocs' SearchDialogList doesn't pass one today. Putting renderMarkdown after the spread closes that off for free.
Search records are sliced from the authored source, so a parent indexed as one record, such as a plain blockquote, still carried the text of a hidden Experimental block inside it, and the twin tag edits, which applied to every stringifier, put the Experimental and Premium tags and the default callout text into search. Edit the gate's opener, closer and body nodes in the search stringifier only: a runtime Experimental block is removed, and the tags of the other gates are dropped with their body kept. The block's own search records are still emptied through structuredData, which needs the body positions the plugin used to strip. Put the safe Markdown renderer after the spread in SearchResultItem so a caller cannot replace it. Assisted-by: AI
|
Thanks for the careful review. I reproduced all of it on 18939cf and fixed it in 560d004. Experimental text in a blockquote: confirmed. Three new tests in Twin tags in search: confirmed. The processed-Markdown stringifier has no namespace of its own ( Other parent types: I checked the default Minor: Verification: docs-transforms 395 and docs-next 361 tests pass, Coder Agents, on behalf of @nickvigilante. |
Resolve the threat-model.md conflict by keeping its deletion from #308. Assisted-by: AI
Jesswinters
left a comment
There was a problem hiding this comment.
I found no P0 or P1 issues, so I'm approving. Two P2s about keeping Experimental text out of search are worth fixing before merge or in a quick follow-up; details are inline.
Both points from the earlier self-review are fixed in 560d004 and covered by tests. I probed the Experimental search exclusion in the runtime context, and text stayed out of the record at top level, in a blockquote, a list, a blockquote inside a list, a > [!NOTE] callout, <details>, around a heading, in a table cell, with CRLF, and for Premium inside Experimental across several nodes. Only the nested inline case below leaks. Every search renderer that uses a hook returns a component (no React error 310), index text never renders as HTML, and the collapsed sidebar is now inert upstream (sidebar.js in fumadocs-ui 16.17.9), so dropping the CSS is safe.
Merging main: the branch is 19 commits behind. git merge-tree shows text conflicts only in pnpm-lock.yaml and pnpm-workspace.yaml (the Fumadocs bumps next to next 16.4.5 from #349; keep both). On a local merge with a regenerated lockfile, typecheck and lint pass, and so do the tests: docs-transforms 418, docs-build 143, docs-next 364, docs-ui 193, docs-config 94, docs-manifest 156, apps/docs 341. #356, #357, #358 and #359 don't interact with this PR semantically. #359's root-relative self links are then prefixed correctly by remarkTwinBasePath.
On this head: all package tests, pnpm typecheck and pnpm lint pass, test:e2e:stitch passes, and test:e2e:single passes after clearing the leftover public/ you mention. I didn't run the axe or keyboard Playwright passes locally, and I didn't check the hybrid dialog or the highlight contrast in a real browser.
P3s not inline:
packages/docs-next/README.md:59still describes a twin as the compiled tree stringified, andsidebar-landmarks.tsx:25anddocs-ui/src/tabs.tsx:13still name 16.15.remark-github-callouts.tslists the alert kinds twice (SOURCE_MARKERandMARKER). Building both from one list would stop them drifting.- The gate tags inserted into a CRLF twin use
\n, so the file ends up with mixed line endings. This is cosmetic. - The lockfile has Shiki 4.6.0, not 4.5.0 as the body says, and it also brings in
motion,yuku-*(native bindings),zbsearch,chokidar6 andcn. All pass the age gate. The 16.17.10 reasoning is out of date now, because 16.17.10 and later are past the three days.
This review was generated by Coder Agents on behalf of @Jesswinters.
| linkPrefix = "", | ||
| imageSizes, | ||
| basePath = "", | ||
| replaceSource = ownReplaceSource, |
There was a problem hiding this comment.
P2: when the consumer's fumadocs-mdx resolves a different fumadocs-core copy from docs-transforms, defaulting to our own replaceSource drops every source edit silently. That loses the Experimental exclusion, the twin gate tags and the callout marker. It matters most for the in-product pipeline, the only one where Experimental is actually hidden. The copies already differ in this repo (docs-transforms resolves …d73208eb, while the apps and docs-build resolve …fe980ff8). A probe with the default on a blockquoted gate kept SECRET_BQ. in the search record, and the app's replaceSource blanked it. Neither README recipe mentions replaceSource or basePath, and those recipes ship in the dist tarballs.
The default should fail closed. You could make fumadocs-core a peer dependency of docs-transforms so it shares the consumer's copy, or throw at config time when the remarkStructure in v isn't from our copy and no replaceSource was passed. Either way, document both options in the docs-transforms and docs-next READMEs.
There was a problem hiding this comment.
Fixed in b55d87c, by throwing rather than a peer dependency: in this workspace docs-transforms keeps its own linked fumadocs-core either way, so a peer dep would not have closed it here. When no replaceSource is passed and the default remarkHeading handed in by fumadocs-mdx is not our copy, the pipeline throws and names the option. mdx-config.test.ts pins it, and a probe from apps/docs against the app's real copy throws as expected. Both READMEs now show replaceSource and basePath in the recipe. The throw also caught the docs-next and docs-build e2e harnesses, which had been compiling with the edits silently dropped; 540a935 passes them their own replaceSource.
| // A runtime `Experimental` block is hidden unless its flag is on, so a | ||
| // search record, a parent's included, must not carry its text. | ||
| const hidden = kind.toLowerCase() === "feature" && !ctx.context; | ||
| if (hidden) { |
There was a problem hiding this comment.
P2: the hidden body is blanked before transformList(close.between, ctx) runs. A nested gate inside it then pushes its own "search" edit on the same node, and Fumadocs keeps only the last edit of a node, so the nested text comes back. Input (runtime context):
> Intro.
>
> <div data-feature="f">
>
> <div data-cond="premium">
> SECRET_NESTED
> </div>
>
> </div>The search record is > Intro.\n>\n> \n>\n> \n> SECRET_NESTED\n>…. The same input outside a blockquote, or spread over several nodes, stays clean. Running this loop after tags.wrap(transformList(...)) makes the outer "" edit the last one. Add this input to the blockquote e2e case.
There was a problem hiding this comment.
Fixed in 4a90ee1: the hidden body is now blanked after tags.wrap(transformList(...)), so the outer empty edit is the last one on each node. Your exact input is a new case in mdx-config.e2e.test.ts; it failed before the change with SECRET_NESTED in the record and passes now.
| const { search, setSearch, query } = useDocsSearch({ client, delayMs }); | ||
| const client = useMemo(() => staticClient({ from: api, locale }), [api, locale]); | ||
| const run = useCallback((query: string) => client.search(query), [client]); | ||
| const { search, onSearchChange, isLoading, data } = experimental_useSearch(run, { delayMs }); |
There was a problem hiding this comment.
P3: error from experimental_useSearch is dropped, so a failed index fetch shows an empty dialog, and Fumadocs' "Search failed" status never appears. The hybrid dialog already passes it through. You could do the same through SearchDialogView.
There was a problem hiding this comment.
Fixed in 7d71f40: SearchDialogView takes error and passes it to Fumadocs' SearchDialog, so the Search failed status shows. Fumadocs' status is its own live region, so our result-count region does not repeat it. A jsdom test covers it and fails without the pass-through.
| const TABLE_DELIMITER = /^\|?(?:\s*:?-+:?\s*\|)+\s*$/; | ||
| const CELL_SEPARATOR = /(?<!\\)\|/; | ||
|
|
||
| /** The cells of a table row record: a Markdown table of its header row (when its table has one) and the row. */ |
There was a problem hiding this comment.
P3: this filter removes any line that is all dashes, so a data row whose cells are all - is removed too, and the header renders in its place. Fumadocs always emits the header, the delimiter and then the row, so dropping the delimiter by position is safer. A table-record XSS test would also help here (<img onerror> and <iframe> in a cell and in the header, asserting no forbidden elements), since the existing safety tests only cover text records.
There was a problem hiding this comment.
Fixed in bcdf300: the delimiter is dropped by position (always the second line), with tests for an all-dash data row with and without a header. Also added the table XSS test: <img onerror> and <iframe> in a cell and in the header render as text, asserted with querySelector on the forbidden elements and img.
| renderContext: STATIC_DOCS_RENDER_CONTEXT, | ||
| linkPrefix: versionLinkPrefix(version), | ||
| imageSizes, | ||
| basePath: process.env.DOCS_BASE_PATH, |
There was a problem hiding this comment.
P3: DOCS_BASE_PATH is passed here without normalising, unlike line 20 and next.config.mjs (AGENTS.md #107). "/docs/" gives twin links like /docs//admin/, and "/" gives //admin/, which a browser reads as another host. This was already the case on main, but this PR moves the line, so normalizeBasePath(process.env.DOCS_BASE_PATH) is a cheap fix.
There was a problem hiding this comment.
Fixed in aafd24e: basePath now goes through normalizeBasePath, like line 20 and next.config.mjs. "/docs/" becomes /docs, and "/" now throws instead of producing //admin/.
Keep the Fumadocs bumps beside next 16.4.5 from main in the catalog, and regenerate the lockfile with pnpm install so both land together. Assisted-by: AI
…ed gates Fumadocs keeps only the last replaceSource edit of a node. The hidden body of a runtime Experimental block was blanked before transformList ran, so a gate nested inside it, such as a Premium block in a blockquote, pushed its own search edit on the same node afterwards and its text came back into the search record. Blanking after the nested gates are built makes the empty edit the last one. Assisted-by: AI
…-core copies An edit made through one fumadocs-core copy's replaceSource is ignored by another copy's remarkStructure and twin stringifier, so defaulting to this package's own copy failed open: when the consumer's fumadocs-mdx resolved a different copy, the Experimental search exclusion, the twin gate tags and the callout marker edits were all dropped without an error. pnpm already installs several peer variants of fumadocs-core in this workspace. Making fumadocs-core a peer dependency would not help here, because a workspace package keeps its own linked copy, so the pipeline now throws when no replaceSource is passed and fumadocs-mdx's default remarkHeading is not this package's. Both READMEs, which ship in the release tarballs, now show replaceSource and basePath in the recipe, and the docs-next README describes a twin as the authored Markdown with the source edits applied. Assisted-by: AI
The twin base path was passed raw, unlike the release schedule URL above it and next.config.mjs, so "/docs/" gave twin links like /docs//admin/. It now goes through normalizeBasePath, which strips the trailing slash and refuses a value such as "/" that would have produced a protocol-relative link. Assisted-by: AI
…tched DocsSearchDialog dropped the error from experimental_useSearch, so a failed index fetch left an empty dialog and Fumadocs' Search failed status never appeared. SearchDialogView now takes the error and hands it to Fumadocs' SearchDialog, as the hybrid dialog already does. Fumadocs' status is itself a live region, so the result-count region does not repeat it. Assisted-by: AI
parseTableRecord filtered out every all-dash line, so a data row whose cells were all dashes was dropped and the header rendered in its place. Fumadocs always writes the header (when there is one), the delimiter and then the row, so the second line is the delimiter. Also pin that raw HTML in a table row's cells and header renders as text, as the text records' safety tests already do. Assisted-by: AI
The sidebar landmark note and the Tabs styling note still named 16.15. Both still hold for 16.17.9: its sidebar slot has no landmark or aria-current option, and its styled Tabs keeps the same container classes. Assisted-by: AI
…list SOURCE_MARKER and MARKER each spelled out the five GitHub alert kinds, so adding a kind to one but not the other would have left its marker in the search records. Both patterns, and the GithubAlert type, now come from one list; the compiled patterns are unchanged. Assisted-by: AI
The docs-next and docs-build e2e tests compiled through coderMdxOptions, whose fumadocs-core copy differs from the one their fumadocs-mdx runs against, so their source edits had been dropped silently. The pipeline now throws in that case, so each test builds it with replaceSource from its own package's fumadocs-core, which is what an app does. Assisted-by: AI
Jesswinters
left a comment
There was a problem hiding this comment.
I re-reviewed the eight commits after my last approval (4a90ee1 to 540a935) and found no P0 or P1 issues, so I'm approving again.
All of my earlier findings are addressed:
- Nested gate leak (P2): 4a90ee1 blanks the hidden body after the nested gates run, and my exact input is now an e2e case.
- Silent
replaceSourcedefault (P2): b55d87c fails closed. Without a passedreplaceSource, the pipeline throws when fumadocs-mdx'sremarkHeadingisn't this package's copy. It also caught the docs-next and docs-build e2e harnesses, which had been dropping the edits silently, and 540a935 fixes those. Both READMEs now documentreplaceSourceandbasePath. - Search error status: 7d71f40 passes
errorthrough, so "Search failed" shows. - All-dash table rows: bcdf300 drops the delimiter by position, and table records now have an XSS test.
- Base path: aafd24e normalises
DOCS_BASE_PATH. - Duplicated alert list: d732311 builds both callout markers from one list.
- Merge: main is merged (654403f), and the branch is up to date.
Locally at 540a935: docs-transforms 420/420, docs-next 367/367, docs-ui 193/193, docs-build 147/147, apps/docs 341/341, pnpm typecheck 19/19 tasks and pnpm lint clean. CI has no failures; only the preview deploys are waiting for approval. I left one P3 inline.
This review was generated by Coder Agents on behalf of @Jesswinters.
| const foreign = defaults.some((entry) => { | ||
| const plugin = Array.isArray(entry) ? entry[0] : entry; | ||
| return ( | ||
| typeof plugin === "function" && plugin.name === remarkHeading.name && plugin !== remarkHeading |
There was a problem hiding this comment.
P3: the guard recognises the foreign copy by plugin.name === remarkHeading.name. If a future fumadocs build minifies or renames that export, the check stops matching. Then foreign is false and we're back to dropping edits silently, which is the failure this guard exists to prevent. A cheap hardening would be to also throw when no entry in v is our remarkHeading and no replaceSource was passed. Then an unrecognised default list fails closed too. withSafeHeadingIds already throws when it can't find remarkHeading by name, so this only adds the identity side.
There was a problem hiding this comment.
Done in b9cb337: without a passed replaceSource, the default plugins must now include this package's own remarkHeading by identity, so a renamed or minified copy fails closed too. A new test feeds a renamed heading, bare and as a tuple, and fails against the old name check.
… replaceSource is passed The guard recognised another fumadocs-core copy by remarkHeading's name, so a build that minified or renamed that export would slip past it and drop the search edits silently again. Without a passed replaceSource, the default plugins must now include this package's own remarkHeading by identity, so an unrecognised list fails closed too. Assisted-by: AI
…-17-upgrade # Conflicts: # pnpm-lock.yaml
Merge order
No required order. Whichever of these lands second rebases.
hybrid-search.tsxand its test, which this PR moves to the new search hook, so the two conflict textually.fumadocs-openapi) is not touched here.Opened by Coder Agents for @nickvigilante.
Summary
Move
fumadocs-coreandfumadocs-uifrom 16.15.14 to 16.17.9 andfumadocs-mdxfrom 15.4.4 to 15.4.10, and drop the workarounds the new versions make redundant.The PR was written against 16.17.9 when 16.17.10 (published 2026-11-02) was still inside the three-day
minimumReleaseAgewindow. 16.17.10 and later have since cleared it, so they could be taken now; this PR stays on the 16.17.9 it was tested and reviewed against, and a later bump can follow. 15.4.10 is thefumadocs-mdxwhose peers (fumadocs-core16.17.8 and up) fit. No other Fumadocs package, Next or React peer needed a bump. The lockfile also moves transitive packages the new versions pull in (Radix UI, Shiki 4.6.0,@fumadocs/tailwind) and addsmotion,yuku-*(native bindings),zbsearch,chokidar6 andcn, all past the age gate, and the unusedmdast-util-to-markdowndirect dependency ofdocs-transformsgoes.Removed:
brand.css: Fumadocs now setsinerton the collapsed sidebar and on its hidden open pill..github/a11y-allowlist.jsonis empty).stringify.filterElementandmdast-util-to-markdownhandler options, which 16.17.0 removed.CopyAnnouncercomment and old version notes (sidebar folder fork, scroll table, provider test).<mark>handling in the search result renderer and inhasExactMatch.Kept:
ScrollTable: upstream'sTablenow hastabIndex={0}, but on every table, with no role or name. Ours is a named region and a tab stop only when it overflows, and pages with hundreds of tables (/reference/api/templates/has 100) would otherwise gain 100 unnamed tab stops.aria-controls/escapeValueworkaround with force-mount, and the ported TOC renderer. Upstream issues are still open, and each was re-checked in Chromium and Firefox against the real corpus (see Testing).fumadocs-mdxsorted its content glob already in 15.4.4, so there was nothing to drop.pagesInUrlOrderorders pages by URL for a different reason and stays.githubUrlicon fix (fumadocs #3716) has no local workaround to remove: our social links are custom icon links and stay.Design or Fix
The new versions change four things we relied on, and each needed a code change.
remarkStructureandremarkLLMsno longer stringify the tree, so nodes our plugins create have no text of their own and the oldstringifyandhandlersoptions are ignored (the base-path rewrite of twin links silently stopped working;processed-markdown.test.tscaught it).Experimentalblock stays out of search, including out of the record of a parent such as a plain blockquote: the gate's opener, closer and body nodes are blanked in thesearchstringifier, andremarkExcludeExperimentalFromSearchempties the block's own records. The default premium callout's children are parsed from a separate string, so their positions are dropped.remarkTwinBasePathedits each link, image and definition URL in the source.createCoderMdxOptionstakesbasePathfor it, andprocessedMarkdownOptions()no longer takes one.data-condordata-featuremarker reaches a twin. Those tags are not search content, so the same nodes get asearchedit that leaves them out (the processed-Markdown stringifier has no namespace of its own). A callout's[!NOTE]marker is left out of its search record.replaceSource, which keeps its state per copy offumadocs-core, and the app anddocs-transformscan resolve different copies under pnpm. Bothsource.config.tsfiles pass their ownreplaceSourcein. Without it the edits are lost silently, which the stitch e2e caught.experimental_useSearch. Table rows arrive as groupedtableitems, sosearch-markdown.tsxrenders a row's cells and its group header as text.SearchDialogListcalls itsItem,TableandEmptyrenderers as plain functions, so hooks must live in a component they return (React error 310 otherwise).<mark>. The axe pass opens the dialog with results but cannot see highlights. Lightning CSS prints a harmless warning for::highlight(fd-search)when generating the CSS.Behaviour changes to know about:
llms-full.txtnow carry the authored Markdown instead of re-serialised JSX components (-bullets,_em_, raw<details>, ).llms-full.txtis 5.55 MB before and 5.37 MB after./reference/api/templates/is 280px shorter over 35 such blockquotes).Ctrl + B(⌘ + B) now collapses the sidebar on desktop.Decision log
minimumReleaseAgenot touched); 16.17.10 has since cleared it and is left for a follow-up.ScrollTableand our search dialog: upstream covers the roles, not the rest of what ours does.replaceSourcefrom the app instead of deduplicating thefumadocs-corecopies: the copies differ by peer versions (zod,lucide-react) that other packages pin on purpose.fumadocs-mdx15.4.5 to 15.4.10 only adds Vite, Windows-drive and Turbopack-warning fixes and movesremarkIncludeinto core.QA
The preview needs a Vercel login and is deployed by running
docs-pr-preview.ymlon the branch, which an agent may not run, so the same builds were checked locally (see Testing). Steps 1 to 7 were exercised in Playwright's headless Chromium and Firefox 155 against the real corpus; none was hand-driven, so the Firefox steps are unverified in a real browser./get-started/on a window at least 1280px wide. PressCtrl + K(⌘ + Kon Mac), typeworkspace proxy. Expected: a list of results, the first one highlighted and the typed words underlined in the accent colour. Press the Down arrow twice and then Enter: the highlighted result opens.--wildcard-access-url. Expected: some results appear as a small table (a header row, then rows of cells), not as a pipe-separated line of text./get-started/and click the second tab of the first tab group. Expected: the panel switches, and the address bar does not gain a#fragment./reference/api/templates/and press Tab from the top of the page until a table gets a focus ring (the first is the "Response Schema" table under "Get templates by organization"). Expected: the ring surrounds the table and the Left and Right arrow keys scroll it sideways. Tables that fit on screen are skipped by Tab./get-started/pressCtrl + B(⌘ + B). Expected: the sidebar slides away, the open button appears at the top left, and pressing Tab does not land on a hidden sidebar link. Press it again to bring the sidebar back./get-started/. Expected: they have no drop shadow any more./get-started.mdon the preview. Expected: the authored Markdown, with<details>for the collapsed blocks and links that start with the site's base path.Pages to compare
Production is
https://coder.com/docs/<path>/. The preview is<preview>/<path>/, always the latest deploy of this branch, and it needs a Vercel login and a run ofdocs-pr-preview.yml, which an agent may not run.<preview>/get-started/<preview>/reference/api/templates/<preview>/reference/feature-stages/<preview>/reference/cli/create/<preview>/admin/setup/data-retention/<preview>/get-started/The search dialog on
/get-started/forworkspace proxy,mainon the left and this branch on the right:Testing
Review fixes (after the approving review):
mainis merged in (654403f; the catalog keeps the Fumadocs bumps besidenext16.4.5, and the lockfile is regenerated). A gate nested inside a blockquoted runtime Experimental block no longer leaks into the search record (4a90ee1), andcreateCoderMdxOptionsnow throws whenfumadocs-mdxruns against anotherfumadocs-corecopy and noreplaceSourcewas passed, instead of silently dropping the source edits (b55d87c; the docs-next and docs-build e2e harnesses were in exactly that state and now pass their own, 540a935). The P3s are in aafd24e (DOCS_BASE_PATHnormalised for the twin base path), 7d71f40 (search errors reach Fumadocs' Search failed status), bcdf300 (table delimiter dropped by position, plus a table XSS test), 8e74daa (16.15 notes) and d732311 (one alert list for both callout markers); the READMEs now documentreplaceSourceandbasePathand describe a twin correctly. The mixed line endings in a CRLF twin are left as they are, as cosmetic. After these: package tests docs-transforms 420, docs-next 367, docs-build 147, docs-manifest 156, docs-config 94, docs-ui 193, docs-sources 73, docs-theme 30, docs-site 341, router 218, offlinedocs 76, dist-release 95 (94 pass, theDIST_SMOKEdry run skipped), all passing;pnpm typecheck,pnpm lintand the docs-site build pass;test:e2e:stitchandtest:e2e:single(after clearingpublic/) pass;a11y:axe70 scans, 0 WCAG violations, 0 allowlisted.Linux only; nothing here is OS specific. CI runs on Ubuntu, and macOS and Windows are not covered by it, so the CRLF twin case is simulated with a
\r\nsource inprocessed-markdown.test.ts.pnpm install(lockfile written by pnpm),pnpm turbo run build --filter='./packages/*',pnpm build,pnpm lint,pnpm typecheckandpnpm testall pass: 12 packages, 2,049 tests, 7 of them skipped (docs-transforms 395, docs-next 361, docs-site 314, docs-ui 193, docs-router 150, docs-manifest 140, docs-build 129, docs-config 94, dist-release 95 (the 7 skipped needgitleaks, which is not installed), docs-sources 73, offlinedocs 75, docs-theme 30). The new tests fail against the old behaviour: the twin base path, the gate tags, the callout marker, the nested-listbox and table-row dialog cases, and a gate inside a blockquote for Experimental, Premium and the static tags.a11y:axe70 scans, 0 WCAG violations, 0 allowlisted (6 existing best-practiceempty-table-headerfindings on/authoring/tables);a11y:keyboard8 runs, 0 failures (Chromium and Firefox);test:e2e:anchors4 of 4;test:e2e:stitchandtest:e2e:singlepass;csp:check,first-load:check(45 pages, no zod),parity:urls(42 pages, 114 anchors, no unapproved mismatch) and the offlinedocs CSP, annotation and analytics checks pass.single-version.e2efails with a leftoverpublic/images/from an earlier root build in the working copy, onmaintoo; after deleting it, it passes.aria-required-childrenandscrollable-region-focusableonmainand nothing on this branch, in desktop and 390px, for the queriesworkspaceandcode.coder/codermain, one version, 478 pages) built onmainand on the branch, then compared in Chromium and Firefox: same text length, tab and TOC counts, scroll-table regions, tabaria-controls, mobile drawer and Escape, skip link, collapsed sidebar focus and TOC active item on 7 pages. The desktop sidebar-collapsed, mobile and mobile-drawer screenshots are pixel-identical. Differences: the shadows, the blockquote margin, the search dialog, andvisibilityof the collapsed sidebar (hiddenonmain, nowinertand off screen). Two builds of the branch give a byte-identicalapi/search(15,934,900 bytes) andllms-full.txt.search.hybridis on), and the in-product embed.Upstream
Candidates to file, each not filed until you approve:
TableindefaultMdxComponentsmakes every table a nameless tab stop; a region that is named and focusable only while it overflows would cover the Safari case without the cost.SearchDialogListcallsItem,TableandEmptyas functions, so a renderer that uses a hook crashes with React error 310; document it or render them as components.fd-search-option-${id}, which is an invalidaria-activedescendantreference when an item id has a space.::highlight(fd-search)rule makes Lightning CSS warn.replaceSourceper-copy state is worth a note upstream, but it follows from how pnpm resolves peers here.Linear: DOCS-1468
🤖 Built with AI assistance.