Skip to content

refactor(docs): use @vite-hub/docs on ViteHub main for image sizes, marked charts and nested blocks - #473

Merged
vite-hub[bot] merged 4 commits into
mainfrom
refactor/docs-vitehub-docs-main
Nov 19, 2026
Merged

vite-hub[bot] merged 4 commits into
mainfrom
refactor/docs-vitehub-docs-main

Conversation

@onmax

@onmax onmax commented Nov 19, 2026

Copy link
Copy Markdown
Owner

The docs pinned a ViteHub integration build from 16 November and kept their own copies of three things @vite-hub/docs on main now does: sizing the images in docs/public (vite-hub/vitehub#4722), keeping the HTML of charts with notes (vite-hub/vitehub#4663), and drawing a block such as ::compare together with the ::screenshots inside it. They also kept three type workarounds for @vite-hub/docs types that main fixed.

This moves every @vite-hub/* package to main at 4a6f7c7 and deletes the copies:

  • docs/markdown.ts loses its docs-image-sizes plugin and the half of its HTML bridge that drew marked charts and nested blocks. Its plugin had the same name as upstream's, so it replaced it. The studio on the landing still draws its own blocks as HTML, since it parses them apart from the page.
  • docs/nuxt.config.ts loses the prepare:types hook, and docs/app/types/vitehub-docs-icon.d.ts and vitehub-docs-layouts.d.ts go.
  • Two config keys follow ViteHub's renames, which main refuses to start without: database.driver is "cloudflare" instead of "d1", and realtime.authority is realtime.driver.
  • The [email protected] release-age exception expired on 17 November, so it goes too.

Before and after: https://drop.vitehub.dev/d/8e50j77ygkcj/before-after

I compared a pnpm docs:generate build of main (21c78f8) with this branch, across all 584 prerendered pages:

main this PR
<img> with a site path 147 147, same width and height on each
::compare blocks 19 19
Screenshot figures 115 115, same count on every page
Charts with notes 27 27

The screenshots of the first compare, the first marked chart, and the first docs/public figure match: 0 pixels differ on the chart and the figure, 64 of 129,888 on the compare. The block heights and page heights are the same.

  • pnpm docs:generate builds and checks the links of 438 pages.
  • vue-tsc -b --noEmit --force on docs passes without the type workarounds.
  • pnpm install --frozen-lockfile accepts the lockfile, and every @vite-hub/* entry in it comes from 4a6f7c7.

I didn't run nuxi dev, the Playwright suite, pnpm ready, or the Worker with wrangler dev, so the Comments, sign-in and Console routes after ViteHub's /_vitehub route move (vite-hub/vitehub#4923) are untested.

@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-19T12:27:07.089368Z
We couldn’t complete this review. Comment @codex review to try again.
53019f7 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.

@vite-hub

vite-hub Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-19T20:14:24.979Z 6m 32s
View session Completed 2026-11-19T12:51:49.014Z 7m 59s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Pushed `367d8caa` to fix the inline-script test collection failure without changing how dates refresh when scripts are moved to the end of the page. Resolved the review thread. All 39 focused tests passed, the properties package built successfully, and lint exited successfully with warnings. Awaiting hosted checks on the new commit.

Session

Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending.

Session

Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending.

Session

Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending.

View session

Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

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

Important

The new HTML renderer leaves dates stale when a properties box appears inside an annotated screenshot caption.

Approach: Moving docs rendering into @vite-hub/docs is the right approach, but the pin needs to preserve scripts that depend on where they render.

Reviewed changes across the Markdown pipeline, Nuxt configuration, and dependency pin.

  • Docs rendering: Verified public image dimensions, marked charts, nested screenshot comparisons, and the landing studio. The compare slider responds to the right arrow key in Chromium.
  • Build and types: Verified the frozen install, workspace build, docs generation, link checks, Vue typecheck, and Wrangler bundle budget.
  • Worker routes: Smoke-tested the GitHub sign-in redirect, the moved Comments overlay and anonymous access check, and the Console RPC auth gate locally. Live OAuth and authenticated team workflows were not tested.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread pnpm-workspace.yaml Resolved

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

Important

The caption date now refreshes correctly, but the new runtime makes the inline-script test suite fail before it runs any tests.

Reviewed changes since 53019f7.

  • Made date refresh independent of script placement. Verified through the pinned docs parser in Chromium that an annotated screenshot caption reads “yesterday” both on initial load and after the figure is replaced. All seven properties browser tests and 17 properties unit tests passed.
  • Updated the GitHub store fixture to use the pinned workspace API’s driver option. Its test passed.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/properties/src/html.ts Resolved

@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 in 367d8ca since the previous Pullfrog review.

  • Extracted the properties date runtime into script.ts and imported it by name so the inline-script guard can check it without changing how dates refresh. The targeted build and package validation passed, along with all 38 inline-script and properties tests.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

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

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

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

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: 367d8ca

@vite-hub
vite-hub Bot merged commit 2f67a73 into main Nov 19, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the refactor/docs-vitehub-docs-main branch November 19, 2026 20:35
@github-actions github-actions Bot mentioned this pull request Nov 19, 2026
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