Repository navigation
docs: build on @vite-hub/docs' Example and styles, drop local copies - #440
Conversation
Codex Review Summary: ❌ FailedThis 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. |
comark-annotate
comark-badge
comark-bundle
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-git-graph
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: |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed the migration to upstream docs components and styles, including the latest clean-install preparation guard.
- Upstream rendering and examples: Removes local Markdown/example components and CSS modules in favor of the pinned ViteHub implementation, including lazy example tabs and playground links.
- HTML-only compatibility: Retains targeted rendering bridges for nested HTML-only blocks, annotated charts, and the landing studio’s annotation timing.
- Framework integration: Updates the ViteHub dependency pins, Cloudflare host setting, database imports, generated alias types, and icon configuration typing.
- Install ordering: Skips Nuxt preparation until the workspace build exists, while preserving content generation during installation.
Validation passed: workspace build and typecheck, docs Vue typecheck, docs generation and link checks for 437 pages, 427 playground states, documentation lint, and 369 focused tests. Production-browser checks confirmed compare content, chart annotations, code-toolbar spacing, and a working lazily mounted Recall example; the latest preparation guard also passed with and without the workspace output present.
gpt-6.1-sol(xhigh) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. |

The docs site kept local copies of
@vite-hub/docscode that upstream now ships: the Example components,DocsMarkdown.vue, the examples parser plugin, and two modules that linked comark-ui's styles and fed Tailwind the theme classes. This moves the site onto upstream and deletes them.The pin is an integration build of vite-hub/vitehub's
integration/comark-ui-docsbranch (a32d1f2):mainplus vite-hub/vitehub#4660, vite-hub/vitehub#4662, vite-hub/vitehub#4663 and vite-hub/vitehub#4664. All but vite-hub/vitehub#4663 have merged since. Move the pin to amainbuild once it merges.@vite-hub/ui-playgroundstays on af71f9df, since@vite-hub/uistill has no./playground-render.Deleted:
docs/modules/comark-styles.tsanddocs-theme-source.ts. Upstream linkscomark-ui/style.csswith thedata-comark-*markers and adds the@sourceitself.Example.vue,Examples.vue,ExamplePreview.vue,Correct.vue,Incorrect.vueandDocsMarkdown.vue. Upstream's heading and code-frame CSS replaces the rulesDocsMarkdown.vueheld.docs/markdown.ts. The playground link now comes from upstream'sexamples.playoption.Upstream changes this picks up:
vitehub.presetis nowhost, anddb/schemacome fromvite-hub/databaseinstead ofvite-hub/database/drizzle.minimumReleaseAgeExcludegets nostics 1.4.0, which the ViteHub build pins, with a date to remove it.Local workarounds, each to drop once upstream fixes it:
DocsMarkdownturns acomark-htmlnode whoseblockhas a Vue component back into that component, and the Vue chart draws no marks.docs/markdown.tsdraws these charts itself and names the block only indata-block.::compare, and any HTML-only block that holds another one. Upstream's page step replaces the inner::screenshots withcomark-htmlnodes before it draws the outer block, so every compare rendered an empty carousel.docs/markdown.tsdraws those blocks first.@vite-hub/docsmaps each#docs/*alias to its.mjs, so vue-tsc reads the JavaScript and never the.d.mtsnext to it. Aprepare:typeshook points the aliases at the declarations. A one-lineCustomAppConfigdeclaration addsicon.customize, which upstream's icon-stroke plugin sets. These errors only show now because the local copies used to shadow upstream's files.@vite-hub/docs/nuxtloads comark-ui's build when Nuxt loads it, andpnpm installruns the docs'preparebeforepnpm build.preparenow skipsnuxi prepareuntilpackages/ui/distexists, as the deletedcomark-stylesmodule did.Differences that come from upstream as it is:
/doctor/critic/invalid-mode, and/doctor/invalid-frontmatter) shows its source in Preview view. Before, one showed an empty box and the other showed the TS rendered as paragraphs.::examplesmounts a tab the first time it opens, so the prerendered HTML holds only the first tab.Checked against a build of
mainat #439 (500d6b4) with the demo harness (370 pages, 2032 demos, 1280 and 390 px):mainhas 54.:suggestionin a sentence stays inline now, where it used to break the paragraph. Height changes beyond 2px are on 115 of 370 pages, all from those groups. I didn't look at every shot.pnpm checkandpnpm run lint:docspass, andpnpm docs:generatebuilds and checks the links of 437 pages. I only checked built output, not the dev server.