Skip to content

docs: build on @vite-hub/docs' Example and styles, drop local copies - #440

Merged
vite-hub[bot] merged 3 commits into
mainfrom
docs/on-vitehub-docs
Nov 16, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
docs/on-vitehub-docs

Conversation

@onmax

@onmax onmax commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The docs site kept local copies of @vite-hub/docs code 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-docs branch (a32d1f2): main plus 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 a main build once it merges. @vite-hub/ui-playground stays on af71f9df, since @vite-hub/ui still has no ./playground-render.

Deleted:

  • docs/modules/comark-styles.ts and docs-theme-source.ts. Upstream links comark-ui/style.css with the data-comark-* markers and adds the @source itself.
  • Example.vue, Examples.vue, ExamplePreview.vue, Correct.vue, Incorrect.vue and DocsMarkdown.vue. Upstream's heading and code-frame CSS replaces the rules DocsMarkdown.vue held.
  • The examples plugin in docs/markdown.ts. The playground link now comes from upstream's examples.play option.

Upstream changes this picks up: vitehub.preset is now host, and db/schema come from vite-hub/database instead of vite-hub/database/drizzle. minimumReleaseAgeExclude gets nostics 1.4.0, which the ViteHub build pins, with a date to remove it.

Local workarounds, each to drop once upstream fixes it:

  • Charts with notes. Upstream draws them as HTML (fix(docs): keep the HTML of charts with marks on the page vite-hub/vitehub#4663), but its DocsMarkdown turns a comark-html node whose block has a Vue component back into that component, and the Vue chart draws no marks. docs/markdown.ts draws these charts itself and names the block only in data-block.
  • ::compare, and any HTML-only block that holds another one. Upstream's page step replaces the inner ::screenshots with comark-html nodes before it draws the outer block, so every compare rendered an empty carousel. docs/markdown.ts draws those blocks first.
  • Types. @vite-hub/docs maps each #docs/* alias to its .mjs, so vue-tsc reads the JavaScript and never the .d.mts next to it. A prepare:types hook points the aliases at the declarations. A one-line CustomAppConfig declaration adds icon.customize, which upstream's icon-stroke plugin sets. These errors only show now because the local copies used to shadow upstream's files.
  • Install order. @vite-hub/docs/nuxt loads comark-ui's build when Nuxt loads it, and pnpm install runs the docs' prepare before pnpm build. prepare now skips nuxi prepare until packages/ui/dist exists, as the deleted comark-styles module did.
  • The studio on the landing still parses its blocks on its own, so it keeps a small bridge that draws them as HTML.

Differences that come from upstream as it is:

  • Examples look like upstream's: its segmented switch, title row on Correct and Incorrect, heading sizes and code frame.
  • An example with no Markdown preview (the TS examples on /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.
  • ::examples mounts a tab the first time it opens, so the prerendered HTML holds only the first tab.

Checked against a build of main at #439 (500d6b4) with the demo harness (370 pages, 2032 demos, 1280 and 390 px):

  • Code view hides the preview and Preview view hides the code everywhere except the 6 source-only demos above (3 demos at 2 widths).
  • Empty previews: 52, all on Doctor pages that drop a block on purpose; main has 54.
  • Visual compare: 3853 shots (preview and code views, both widths) differ by more than 0.05%, since every example's frame changed; no demo is missing from either build. I looked at the largest diffs in each group. They come from upstream's styles: its switch and tab row, a lighter code frame, heading spacing, and charts, tables and figures that drop the preview's ring because upstream counts them as framed. The one content change is an improvement: :suggestion in 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 check and pnpm run lint:docs pass, and pnpm docs:generate builds and checks the links of 437 pages. I only checked built output, not the dev server.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T21:08:26.015359Z
We couldn’t complete this review. Comment @codex review to try again.
2ca2ac2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@440

comark-badge

pnpm add https://pkg.pr.new/comark-badge@440

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@440

comark-cards

pnpm add https://pkg.pr.new/comark-cards@440

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@440

comark-cast

pnpm add https://pkg.pr.new/comark-cast@440

comark-charts

pnpm add https://pkg.pr.new/comark-charts@440

comark-chat

pnpm add https://pkg.pr.new/comark-chat@440

comark-chips

pnpm add https://pkg.pr.new/comark-chips@440

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@440

comark-code

pnpm add https://pkg.pr.new/comark-code@440

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@440

comark-colors

pnpm add https://pkg.pr.new/comark-colors@440

comark-comments

pnpm add https://pkg.pr.new/comark-comments@440

comark-critic

pnpm add https://pkg.pr.new/comark-critic@440

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@440

comark-details

pnpm add https://pkg.pr.new/comark-details@440

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@440

comark-diff

pnpm add https://pkg.pr.new/comark-diff@440

comark-embed

pnpm add https://pkg.pr.new/comark-embed@440

comark-fields

pnpm add https://pkg.pr.new/comark-fields@440

comark-figure

pnpm add https://pkg.pr.new/comark-figure@440

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@440

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@440

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@440

comark-github

pnpm add https://pkg.pr.new/comark-github@440

comark-icon

pnpm add https://pkg.pr.new/comark-icon@440

comark-include

pnpm add https://pkg.pr.new/comark-include@440

comark-keys

pnpm add https://pkg.pr.new/comark-keys@440

comark-links

pnpm add https://pkg.pr.new/comark-links@440

comark-linter

pnpm add https://pkg.pr.new/comark-linter@440

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@440

comark-mark

pnpm add https://pkg.pr.new/comark-mark@440

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@440

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@440

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@440

comark-media

pnpm add https://pkg.pr.new/comark-media@440

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@440

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@440

comark-outline

pnpm add https://pkg.pr.new/comark-outline@440

comark-properties

pnpm add https://pkg.pr.new/comark-properties@440

comark-qr

pnpm add https://pkg.pr.new/comark-qr@440

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@440

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@440

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@440

comark-sources

pnpm add https://pkg.pr.new/comark-sources@440

comark-steps

pnpm add https://pkg.pr.new/comark-steps@440

comark-table

pnpm add https://pkg.pr.new/comark-table@440

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@440

comark-tests

pnpm add https://pkg.pr.new/comark-tests@440

comark-time

pnpm add https://pkg.pr.new/comark-time@440

comark-ui

pnpm add https://pkg.pr.new/comark-ui@440

comark-xref

pnpm add https://pkg.pr.new/comark-xref@440

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@440

commit: 1a54ff3

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@vite-hub
vite-hub Bot merged commit 0a82a8c into main Nov 16, 2026
5 checks passed
@vite-hub
vite-hub Bot deleted the docs/on-vitehub-docs branch November 16, 2026 21:30
@github-actions github-actions Bot mentioned this pull request Nov 16, 2026
@vite-hub

vite-hub Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant