Repository navigation
refactor(docs): one docs app on @vite-hub/docs, with everything the old site had - #351
Conversation
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request dd89bc26-5b68-47b9-8d3d-e2d75f0065a7. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. Session Push window closed: 5 repair pushes in the last 24 hours. Required checks fail, so the next repair push and pass start at 2026-11-05T10:45:58.840Z. A person's comment or review or a merge conflict still starts a pass. |
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
…itehub main docs-next/ folds into docs/, which drops the build.ts renderer and renders every page of docs/pages and each package's docs/ through @vite-hub/docs. docs/content.ts writes the module's content folder, docs/markdown.ts parses with the site's plugins and draws the HTML-only blocks (annotate, diff, quiz, comments) on the server. Every @vite-hub/* package comes from pkg.pr.new at vite-hub/vitehub@4a7b4197d, which has #3362 and #3363, so the @vite-hub/docs patch is gone.
9aee42d to
4df0dc8
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Important
Two user-facing regressions should be addressed before merging: HTML-only blocks lose their runtime after client navigation, and the removed badge builder is still published and documented as available.
Reviewed changes across all 65 files and 11 commits in the docs migration.
- Docs architecture: replaced the custom static renderer, island body, navigation shell, playground, gallery, and badge builder with one
@vite-hub/docsNuxt app. - Content generation: added
docs/content.tsto copy site and package Markdown, normalize frontmatter and links, and generate navigation metadata. - Rendering integration: added the Vue component registry, example previews, HTML-only renderer bridge, and focused client-navigation/browser coverage.
- Runtime and deployment: moved to pinned ViteHub preview packages, preserved CMS/auth/comments/Worker routes, and updated Cloudflare and dependency configuration.
- Test scope: removed legacy product-surface tests and retained or added checks for package renderer contracts, mobile overflow, search, raw Markdown, and docs scripts.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at c17a0ad.
- Restored HTML-only runtimes: recreated inline renderer scripts after mount and HTML replacement, with SPA navigation coverage across quiz and annotate interactions.
- Retired the badge builder surface: removed the unresolved builder page, redirected
/badgesto/badge/, and replaced builder promises in public docs and the shipped skill with hosted endpoint guidance. - Verified the delta: focused redirect tests passed with 14 tests, and formatting and lint checks passed for the changed runtime, browser test, redirect, and unit-test files.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at b082353.
- Reconciled the built-site link checker: added CI validation for flat generated page routes, fragments, deliberate example exclusions, dynamic badge URLs, and Worker redirects.
- Preserved migration documentation routes: excluded the migration packages and wizard from legacy topic-page redirects while retaining the retired badge-builder redirect.
- Documented pnpm trust transitions: added exact-version guidance for
ERR_PNPM_TRUST_DOWNGRADEand linked it from the shipped agent skill. - Tightened release verification: required the npm manifest to report direct GitHub trusted publishing without staged approval and SLSA provenance.
- Verified the delta: focused link and redirect tests passed with 21 assertions, and the npm predicate matches documented and live registry metadata.
gpt-5.6-sol | 𝕏
…ub/docs Patches @vite-hub/docs with Nuxt SEO (vite-hub/vitehub PR pending): every page gets a share image rendered at prerender, from its title and description. Patches @vite-hub/web-container so Worker builds no longer need the @blitz/internal/env stub, which this drops.
There was a problem hiding this comment.
Important
The new share-image override mishandles a supported relative public path and can publish malformed social metadata.
Reviewed changes since the prior reviewed version at 8c158a7.
- Ported browser contracts: moved required Playwright coverage from generated docs pages to self-contained renderer fixtures served with assets from
docs/public. - Added docs SEO integration: backported generated share images, site config, Schema.org page/article/breadcrumb metadata, custom
seo.image, raw-route HEAD handling, and raw-link exclusions into@vite-hub/docs. - Removed a Worker bundling shim: patched
@vite-hub/web-containerto detect WebContainers without importing the StackBlitz-only environment package. - Reworked CI artifacts: stopped uploading and downloading the generated docs tree for the component E2E job while retaining package artifacts.
- Documented temporary patches: recorded the upstream ViteHub PR and the exact removal conditions for both package backports.
gpt-5.6-sol | 𝕏
…s to the badge docs
… to the docs app The three tools are Nuxt pages at their old URLs, /play, /play/gallery, and /badges, in the docs shell with its header and without the docs sidebar. Each starts the old client script on mount and stops it on unmount. docs/tools.ts renders the presets' stills and the gallery's cells before Nuxt starts. Playground links in the content point at the ported page, and each example opens in the playground again.
There was a problem hiding this comment.
Important
The new fragment exemption does not match the value Nuxt Link Checker actually filters, so docs generation can still fail on the deliberate Doctor example.
Reviewed changes since the prior Pullfrog review at b00ac9f.
- Expanded deliberate Doctor exclusions: exempted the broken-anchor fragment, invalid avatar path, and additional xref example images from docs link validation.
- Resolved links before custom filtering: checked exclusions against raw links, resolved paths, and resolved path-plus-fragment values in
docs/links.ts. - Added boundary coverage: verified the intended examples pass while neighboring fragments and similarly named assets still report failures.
gpt-5.6-sol | 𝕏
|
Regarding the fragment exclusion thread: P2 confirmed ( |
docs/tools.ts builds packages/ui/playground with Vite into the tools' static files, as the old build did. The patched @vite-hub/docs now keeps the site header on app pages, so the tools drop their CSS workaround, and the dev server gets the heap it needs.
There was a problem hiding this comment.
ℹ️ No new issues found in this delta. The previously reported Nuxt
#methodsexclusion mismatch remains substantively unchanged.
Reviewed changes since the prior Pullfrog review at 196fc5d.
- Excluded the fictional annotate screenshot: added an exact root
/pond.pngexemption for rendered Doctor annotate examples. - Preserved nearby link validation: added negative coverage for
/pond-typo.pngand/pond.png/missing, so similarly named assets and descendants still fail link checks.
gpt-5.6-sol | 𝕏
Restoring an unresolved [^1] matched Shiki's spans too, so a code block highlighted before comark-mark ran showed [[^1]], and the docs' footnotes examples opened in the playground with doubled brackets.
… migrators' maps without a trailing slash docs/links.ts unpacks each /play#md= link and parses it with the playground's plugins, or finds its preset, so a link that wouldn't open fails the check. That's what found the mark bug. The migrators' docs links lose their trailing slash, which the new site redirects.
…de the link check docs/links.ts stays a script with no dependencies, which its tests run from a temporary folder. `pnpm docs:links` runs both.
…vite-hub-docs Playground links stay on the site: the playground is part of the docs app now.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at 02d3055.
- Restored the docs tools: ported the playground, component gallery, and badge builder into Nuxt pages with asynchronous mount guards and runtime cleanup on navigation.
- Restored the rich-text editor: built the editor playground into the generated tool assets under
/play/editor/and kept the docs shell header on app pages. - Validated playground links: added a dedicated built-site pass that verifies every linked preset or packed Markdown state against the playground configuration.
- Fixed highlighted footnotes: prevented
comark-markfrom restoring brackets inside highlightedpreandcodetrees, with focused parse coverage. - Reconciled docs links and types: removed obsolete trailing slashes, matched resolved same-page fragments in the custom checker, registered the landing footer with Doctor, and tightened restored tool typings.
gpt-5.6-sol | 𝕏
…tion when a link update fails (#489) * fix(docs): keep the gallery's sharing error from the reader's last action when a link update fails #348 (0ad268e) made reportSharing skip a debounced link update's failure while an error is already showing. #351 (b99eb9e) merged an older copy of docs/gallery.ts over it and the guard went away, so a failed background link update replaced the error from opening the playground, copying the gallery link or loading a link's edits with "Could not create a sharing link." * fix(docs): scope gallery sharing errors to pending updates --------- Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>

This makes
docs/the only docs app.docs-next/is gone, and so is the old renderer,docs/build.ts. Every page indocs/pagesand every package'sdocs/now renders through@vite-hub/docs. Everything the old site had is ported: the landing, the playground, the component gallery, the badge builder, the rich-text editor, and share images.Dependencies
All
@vite-hub/*packages come from pkg.pr.new at vite-hub/vitehub@4a7b4197d (main), which already has #3362 (parseroption) and #3363 (hydration fix). The@vite-hub/docspatch is gone.@vite-hub/*name to that same URL.0.1.0 || 0.0.0-preview-…, and pnpm filled the missing ones from npm's 0.1.0. The worker then failed on a missing@vite-hub/workspaceregistry.docs/package.jsonnow lists those peers itself (agent, blob, connections, email, gateways, kv, presets, schedule, shell, workflow), so the lockfile holds one commit only.Two packages are patched with vite-hub/vitehub#3372 until it merges (see
patches/README.md):@vite-hub/docsgets Nuxt SEO: a share image for every page, rendered while the build prerenders; site config; Schema.org; ahomelayout; and a header that shows on pages without the docs sidebar. The patch's new dependencies come frompackageExtensions.@vite-hub/web-containerstops importing@webcontainer/env, so the Worker bundles without the@blitz/internal/envstub.How it renders
docs/content.tswritesdocs/content/(gitignored):docs/pagesas is, and each package'sdocs/as a section. It cuts frontmatter down to the strict schema, takes Doctor rule titles from the catalog, and drops the trailing slashes from links.docs/sections.tsholdspackageOrderand the rail's categories.docs/markdown.tsparses withdocs/plugins.ts, the site's existing plugin list. annotate, diff, quiz, and comments have no Vue renderer, so their blocks are drawn to HTML on the server and shown byComarkHtml.vue.docs/server/*keeps auth, D1, comments, Console, and the Worker redirects. robots.txt moves to agent discovery because Content's copy clashed with it. The cms preset is nowvite-hub/cms.Landing.
docs/pages/index.mdin thehomelayout. Its blocks are content components:::landing-hero,::packages(the canvas),::hero(the studio),::drop, and::landing-footer.docs/landing.tswrites the canvas cards and the package list before Nuxt starts. Its share image is the designed/og/home.png.Tools.
/play,/play/gallery, and/badgesare Nuxt pages that start the old client scripts on mount.docs/tools.tsrenders their stills, the gallery's cells, and the preview stylesheet, and it builds the rich-text editor (packages/ui/playground) into/play/editor/. Examples have their "Playground" link again.Share images. Every docs page and tool gets one, made by the build from the page's title and description.
Evidence
pnpm readypasses: format, lint, typecheck, build, 2,736 unit tests, and Vite Doctor with 0 warnings.pnpm --filter comark-ui-docs generateprerenders 1,718 routes, including 410 share images, with 0 link-checker errors. The Worker is 5.7 MB gzipped.pnpm docs:linkschecks the links of 412 pages. Its new step,docs/play-links.ts, opens all 493 playground links (472 distinct states): each preset exists, and each#md=decodes and parses with the playground's plugins without issues. That check found acomark-markbug: in highlighted code it turned[^1]into[[^1]], so the footnotes examples opened broken. That's fixed, with a test.Not done yet
docs/content.tsstill drops them.nuxi devneeds about 6 GB of heap and the build 7 GB. Most of that is the@vite-hub/*tree that comments pulls in through auth and agent. Shrinking it is a separate vitehub change.lucide:scribble-loop, the annotate icon, isn't in the installed Lucide set, so it shows blank.