Repository navigation
fix(docs): restore Pages deployment and pnpm installs - #7
Merged
Merged
Conversation
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. |
webkubor
enabled auto-merge (squash)
November 2, 2026 10:42
lunove
approved these changes
Nov 2, 2026
lunove
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed independently at head 85bb19a.
Verified:
- Diff scope matches exactly — 4 files, +12/-9.
- 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.
- 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'.
- 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.
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withv-pre.The pnpm build permission also contained the literal placeholder
set this to true or false. SetallowBuilds.esbuildtotruein pnpm-workspace.yaml and remove the obsolete package.json setting that pnpm 11 ignores. Freshpnpm install --no-frozen-lockfilenow 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 compatpassed (163 tests, both typechecks, package build);npm run docs:buildpassed on the fixed docs;git diff --checkpassed. CI will verify Vite compatibility and the documentation build on this PR; after merge verify the Pages deployment and/guide/visualonline.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: trueinpnpm-workspace.yaml(replacing the invalid placeholder) and drops the ignoredpnpm.onlyBuiltDependenciesblock frompackage.json, so esbuild’s postinstall can run on fresh installs.Docs content: In
website/guide/guard.md, wraps the inlinestyle={{ '--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/visualoffline).Deploy workflow: Triggers the same VitePress build on pull requests to
mainwhenwebsite/**or the workflow file changes. PR runs only build—configure-pages, artifact upload, anddeploy-pagesstay 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.