Repository navigation
fix(docs): unbreak the docs build and gate it in CI - #668
Conversation
The credential reference showed the signed-out output as an empty fenced block. The current Markdown parser emits it as a code element with no text child, and rehype-expressive-code crashes on it, failing every Cloudflare Pages build since the docs lockfile refresh. The sentence above the block already says the command prints nothing. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Deploying archgate-cli with
|
| Latest commit: |
8078fad
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c7665fef.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-docs-empty-code-block.archgate-cli.pages.dev |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code Coverage
Full HTML report available in workflow artifacts. Per-directory breakdown
|
#660 merged with the Cloudflare Pages check red, because that check is not required. cli.archgate.dev then stayed broken until #668. This PR closes that gap. - **Detect Docs Changes**: true when the change touches `docs/` or `code-pull-request.yml` (always true on manual or `workflow_call` runs). - **Docs Build**: runs exactly what Cloudflare runs: `bun install --frozen-lockfile` and `bun run build` in `docs/`, on the Node major from `.prototools`. - **Validate Code**: the required gate fails unless Docs Build passed. It passes only if the job was skipped because no docs changed. GEN-001 is amended to require this gate. It still keeps the docs out of `bun run validate`, so CLI-only changes and the offline pre-push hook are unaffected. This PR edits the workflow, so its own run includes Docs Build. --------- Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Fix
The Cloudflare Pages build for cli.archgate.dev has failed on every commit since #660 (docs lockfile refresh). The refreshed Markdown parser emits an empty fenced block as a
<code>element with no text child, andrehype-expressive-codecrashes on it:The only empty fences in the docs are the signed-out example in
credential.mdx(en, pt-br, nb). The sentence above it already says the command prints nothing, so the block is removed.Guard
#660 merged with the Cloudflare Pages check red because that check is not required. The Validate workflow gains:
docs/orcode-pull-request.yml(always true on manual orworkflow_callruns).bun install --frozen-lockfileandbun run buildindocs/, on the Node major from.prototools.GEN-001 is amended to require this gate. It still keeps the docs out of
bun run validate, so CLI-only changes and the offline pre-push hook are unaffected.Verified locally:
astro build(Node 24, current lockfile) builds 172 pages;archgate checkandformat:checkpass.