Skip to content

Fix follow-ups from PR #68 (rspress + Pages)#69

Merged
JRS1986 merged 1 commit into
mainfrom
fix/docs-pages-followup
May 19, 2026
Merged

Fix follow-ups from PR #68 (rspress + Pages)#69
JRS1986 merged 1 commit into
mainfrom
fix/docs-pages-followup

Conversation

@JRS1986
Copy link
Copy Markdown
Owner

@JRS1986 JRS1986 commented May 19, 2026

Follow-ups to #68. The content move was clean; these three issues weren't blockers but need fixing before Pages can actually deploy.

1. Workflow trigger

The `docs-build` and `docs-deploy` jobs were added to `release.yml`, which is `workflow_dispatch:`-only. Their `if: github.event_name == 'push'` guards could therefore never fire, so Pages would never auto-deploy.

Moved both jobs into a dedicated `.github/workflows/docs.yml` triggered by:

  • `push: branches: [main]` — actually deploys to Pages.
  • `pull_request: paths: [docs/**, .github/workflows/docs.yml]` — validates the build on PRs that touch docs (no deploy).
  • `workflow_dispatch:` — manual override.

Pages permissions (`pages: write`, `id-token: write`) are declared at workflow scope. A concurrency group named `pages` with `cancel-in-progress: true` prevents overlapping deploys. The dead jobs were trimmed out of `release.yml`.

2. `package-lock.json` out of sync

`npm ci` failed on the lock file shipped with #68 — missing transitive `@emnapi/core@1.10.0`. Regenerated via `npm install --package-lock-only`. Verified locally that `npm ci` + `npm run build` now succeed end-to-end (1130.8 kB output, including `llms-full.txt`).

3. Broken `docs/wiki/` links

The wiki content moved to `docs/docs/wiki/` under rspress's content root, so:

  • `README.md` had 4 broken links (`Team-Rollout`, `Security`, `Tool-Adapters`, `Knowledge-Base`).
  • `AGENTS.md` had 1 broken reference in its Quick Reference table.

All fixed to `docs/docs/wiki/...`. CHANGELOG historical entries are left alone — they're an immutable release record.

Verification

  • `cd docs && npm ci && npm run build` succeeds locally.
  • `uv run ruff check` clean.
  • `uv run pytest -q` → 327 passed (Python suite unchanged).

Three issues found during review of the rspress docs PR. The content
itself was clean (16 wiki pages renamed cleanly to docs/docs/wiki/, plus
the rspress config and llms-full.txt plugin). These three needed
follow-up:

1. Workflow trigger. The docs-build and docs-deploy jobs were added to
   release.yml, which is workflow_dispatch:-only. Their
   'if: github.event_name == push' guards could therefore never fire, so
   Pages would never auto-deploy. Moved both jobs into a dedicated
   .github/workflows/docs.yml triggered by push to main (with
   pull_request:[docs/**] for PR validation). Pages permissions are
   declared at workflow scope; a concurrency group prevents overlapping
   deploys. Trimmed the dead jobs out of release.yml.

2. package-lock.json was out of sync — npm ci failed because
   transitive @emnapi/core was missing. Regenerated via
   `npm install --package-lock-only`. Verified `npm ci` + `npm run build`
   now succeed end-to-end.

3. Broken docs/wiki/ links in README.md (4) and AGENTS.md (1) — those
   paths moved to docs/docs/wiki/ under rspress's content root. Updated
   the live links so the GitHub file browser resolves them; CHANGELOG
   historical entries are left alone (immutable release record).

Verified locally:
- `cd docs && npm ci && npm run build` succeeds (1130.8 kB output,
  including llms-full.txt).
- `uv run ruff check` clean.
- `uv run pytest -q` → 327 passed (unchanged).
@JRS1986 JRS1986 merged commit a844228 into main May 19, 2026
3 checks passed
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