fix(docs): set GitHub Pages base path so the site loads#9
Merged
Conversation
- The site deploys to https://enixcode.github.io/light-runner/ but the VitePress config had no base, so it emitted asset URLs rooted at / (enixcode.github.io/assets/...). Those 404 under the project sub-path, leaving the published page blank. - Set base to /light-runner/. VitePress auto-prepends it to absolute asset and head URLs, so the favicon href and generated CSS/JS now resolve under /light-runner/. og:image and twitter:image already use full absolute URLs and are unaffected. build with cc
enixCode
added a commit
that referenced
this pull request
May 29, 2026
Ship attached-run state persistence + state-dir size cap (PR #8) and the GitHub Pages base-path fix (PR #9). Version bump done manually because the preversion hook's local VitePress build is unusable on a OneDrive-synced working tree; the published npm package (dist JS) and the deployed docs site (CI Docs workflow) are unaffected. build with cc
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.
What
The published docs site at https://enixcode.github.io/light-runner/ renders blank: the VitePress config had no
base, so it emitted asset URLs rooted at/(enixcode.github.io/assets/...) which 404 under the project sub-path. The HTML loads but its CSS/JS never resolve.base: '/light-runner/'indocs/.vitepress/config.ts.baseto absolute (/...) asset andheadURLs, so the favicon (/banner.webp) and the generated CSS/JS now resolve under/light-runner/. No other change needed.og:image/twitter:imagealready use full absolute URLs and are unaffected.main(the Docs workflow deploys on push tomaintouchingdocs/**).build with cc