Skip to content

fix(docs): repair Pages URLs/base for public project page#160

Closed
Roger-luo wants to merge 1 commit into
mainfrom
fix/docs-public-pages-base
Closed

fix(docs): repair Pages URLs/base for public project page#160
Roger-luo wants to merge 1 commit into
mainfrom
fix/docs-public-pages-base

Conversation

@Roger-luo

Copy link
Copy Markdown
Collaborator

Problem

Open-sourcing the repo moved GitHub Pages from the private random subdomain (congenial-bassoon-l436wp3.pages.github.io, served at root) to the public project page https://queracomputing.github.io/ppvm/ (served under /ppvm/). The docs config still assumed the old root-served subdomain, breaking two things:

1. README badges

  • Docs badge link → 404 (dead private subdomain). Verified: the subdomain returns HTTP 404; https://queracomputing.github.io/ppvm/ returns HTTP 200 (and is the repo's GitHub-API homepage).
  • Docs badge image malformedbadge/docs-6437FF rendered as a "docs | 6437FF" text badge instead of a coloured pill.
  • CI badges pointed at non-existent workflows (rust-ci.yml, python-ci.yml). There is one workflow — ci.yml — running both the rust and python jobs.

2. Live docs page broken

The site was built with base=/ (correct when the private repo served at the subdomain root), but the public project page serves under /ppvm/. Every emitted asset/nav link 404s. Verified on the live site:

URL Status
…/ppvm/_astro/… style asset built as /_astro/…404
…/quickstart 404
…/ppvm/quickstart 200

Fix

  • README.md — Docs badge + prose link → https://queracomputing.github.io/ppvm/; badge syntax → docs-online-6437FF; collapse the two broken CI badges into one accurate ci.yml badge.
  • docs/astro.config.mjs — default sitehttps://queracomputing.github.io; refresh the deploy-target comment block.
  • .github/workflows/docs.yml — build with PPVM_BASE=/ppvm/ on main and /ppvm/pr-preview/pr-<N> on PRs; PPVM_SITEhttps://queracomputing.github.io.

The docs templates already derive every link from import.meta.env.BASE_URL, so setting the correct build-time base repairs all assets and navigation at once. The pr-preview-action umbrella-dir: pr-preview already lands previews at gh-pages/pr-preview/pr-<N>/, which matches the new /ppvm/pr-preview/pr-<N> base.

Verification

  • Live-URL probes (404 vs 200) above pin down the root cause.
  • Base-aware templates confirmed via grep for import.meta.env.BASE_URL (no hardcoded href="/" in layouts/components).
  • The PR preview deploy from this PR is the end-to-end gate — it now builds under /ppvm/pr-preview/pr-<N>/ and should render fully styled with working navigation.

🤖 Generated with Claude Code

The repo was open-sourced, moving GitHub Pages from the private random
subdomain (served at root) to the public project page
`https://queracomputing.github.io/ppvm/` (served under `/ppvm/`). The
docs config still assumed the old root-served subdomain, so:

- the README "Docs" badge + prose link 404'd (dead subdomain), and the
  badge image used malformed shields syntax (`docs-6437FF` rendered as a
  text badge, not a coloured pill);
- the live docs page was unstyled/un-navigable — assets and nav links
  were emitted as `/_astro/…` and `/quickstart` (base `/`) instead of
  `/ppvm/…`, all 404 under the project page.

Fixes:
- README: point Docs badge + doc link at queracomputing.github.io/ppvm/,
  fix badge syntax to `docs-online-6437FF`, and collapse the two broken
  CI badges (rust-ci.yml / python-ci.yml don't exist) into one accurate
  `ci.yml` badge.
- astro.config.mjs: default `site` → https://queracomputing.github.io
  and update the deploy-target comment block.
- docs.yml: build with PPVM_BASE=/ppvm/ on main and
  /ppvm/pr-preview/pr-<N> on PRs, PPVM_SITE → queracomputing.github.io.

Templates already derive links from `import.meta.env.BASE_URL`, so the
correct build-time base repairs every asset and nav link.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Roger-luo

Copy link
Copy Markdown
Collaborator Author

oh didn't realize this is already fixed

@Roger-luo Roger-luo closed this Jun 24, 2026
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-24 15:41 UTC

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