Skip to content

fix(docs): restore Pages deployment and pnpm installs - #7

Merged
webkubor merged 1 commit into
mainfrom
fix/docs-build-pnpm
Nov 2, 2026
Merged

webkubor merged 1 commit into
mainfrom
fix/docs-build-pnpm

Conversation

@webkubor

@webkubor webkubor commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

The documentation deployment has been failing before Pages publication, leaving the README's visual-panel guide at 404. The inline JSX example style={{ '--x': v }} was interpreted as Vue interpolation by VitePress. Render it as literal code with v-pre.

The pnpm build permission also contained the literal placeholder set this to true or false. Set allowBuilds.esbuild to true in pnpm-workspace.yaml and remove the obsolete package.json setting that pnpm 11 ignores. Fresh pnpm install --no-frozen-lockfile now executes esbuild's postinstall successfully.

To catch recurrence before merge, run the existing documentation build on website PRs. PRs only build; Pages configuration, upload and deploy remain restricted to main pushes/manual dispatch. PR concurrency is isolated from live deployments.

Validation: pnpm compat passed (163 tests, both typechecks, package build); npm run docs:build passed on the fixed docs; git diff --check passed. CI will verify Vite compatibility and the documentation build on this PR; after merge verify the Pages deployment and /guide/visual online.


Note

Low Risk
Changes are limited to CI/docs and pnpm install config; no runtime plugin or auth logic is modified.

Overview
Fixes broken GitHub Pages and local pnpm installs, and adds CI so docs regressions are caught on PRs.

pnpm / esbuild: Sets allowBuilds.esbuild: true in pnpm-workspace.yaml (replacing the invalid placeholder) and drops the ignored pnpm.onlyBuiltDependencies block from package.json, so esbuild’s postinstall can run on fresh installs.

Docs content: In website/guide/guard.md, wraps the inline style={{ '--x': v }} example in <code v-pre> so VitePress renders it literally instead of treating {{ }} as Vue interpolation (which was breaking the build and leaving guides like /guide/visual offline).

Deploy workflow: Triggers the same VitePress build on pull requests to main when website/** or the workflow file changes. PR runs only build—configure-pages, artifact upload, and deploy-pages stay gated to push/manual dispatch. Concurrency groups are split so PR builds don’t cancel in-flight main deployments.

Reviewed by Cursor Bugbot for commit 85bb19a. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-02T10:38:57.611211Z
We couldn’t complete this review. Comment @codex review to try again.
85bb19a 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.

@webkubor
webkubor enabled auto-merge (squash) November 2, 2026 10:42

@lunove lunove left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed independently at head 85bb19a.

Verified:

  1. Diff scope matches exactly — 4 files, +12/-9.
  2. CI: 7 passed / 0 failed. 'build' job SUCCESS on this head (vitepress build complete in 3.33s); 'deploy' job SKIPPED — PR isolation works as intended. Vite 4.5.14 / 5.4.21 / 6.4.3 / 7.3.6 / 8.2.0 compatibility matrix all green.
  3. deploy.yml concurrency group 'pages-<pr#>' vs 'deploy' correctly isolates PR runs from main-branch deploys; configure-pages/upload-pages-artifact/deploy all gated on event_name != 'pull_request'.
  4. pnpm-workspace.yaml allowBuilds.esbuild: true — verified pnpm 11.20.0 parses allowBuilds (placeholder string 'set this to true or false' reproduced ERR_PNPM_IGNORED_BUILDS with esbuild postinstall skipped; with true the esbuild native binary is a working Mach-O arm64 executable). Removed package.json 'pnpm.onlyBuiltDependencies' is the legacy duplicate — no stale key left.
  5. website/guide/guard.md: renders correctly — built dist/guide/guard.html contains 'style={{ '--x': v }}' with zero leftover v-pre attributes; no other unguarded {{ }} interpolation remains in any website/**/*.md outside code fences.

No blockers.

@webkubor
webkubor merged commit 5dce8e8 into main Nov 2, 2026
10 checks passed
@webkubor
webkubor deleted the fix/docs-build-pnpm branch November 17, 2026 01:23
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.

2 participants