Skip to content

fix(pages): build docs/ with Jekyll 4 and render_with_liquid: false - #452

Merged
Shinrai merged 1 commit into
nextfrom
fix/pages-jekyll4
Nov 8, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/pages-jekyll4

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(pages): build docs/ with Jekyll 4 and render_with_liquid: false (15192d2)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

GitHub Pages' classic branch build runs Jekyll 3.10 and passes every
page through Liquid, so docs that quote GitHub Actions expressions lost
them (${{ inputs.x }} rendered as $) and a stray double brace failed the
whole build. None of the docs use Liquid.

local-pages.yml builds docs/ with Jekyll 4 in the official ruby:4.0
container and deploys it with actions/deploy-pages. docs/_config.yml
turns Liquid off for page content (layouts still render) and keeps the
classic build's theme, GFM kramdown and the same plugins. A local build
of docs/ matched the classic one apart from the restored expressions and
newer highlighter markup.

Needs the Pages source switched to GitHub Actions.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 8, 2026
@Shinrai
Shinrai merged commit e19bb11 into next Nov 8, 2026
16 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/pages-jekyll4 branch November 8, 2026 21:31
cldmv-bot Bot added a commit that referenced this pull request Nov 8, 2026
# v4.36.0 — 2026-11-08

Minor release with a fleet Node `.gitignore` template and the fixes that get the GitHub Pages site building again. Every Pages build had failed since v4.35.0 because the README template docs quoted Liquid-style double-brace tokens. The template now uses single-brace tokens, and `docs/` builds with Jekyll 4 from a workflow in this repo, so pages that quote GitHub Actions expressions show them as written.

## Features

- **Fleet Node `.gitignore` template.** [examples/gitignore/Node.gitignore](../../examples/gitignore/Node.gitignore) is one managed block, between `# >>> CLDMV fleet (Node) >>>` and `# <<< CLDMV fleet <<<`, that every Node repo copies to the top of its `.gitignore`. It holds GitHub's upstream Node.gitignore verbatim, the CLDMV conventions (`tmp/`, `trash/`, root `coverage/` and `logs`, `dist/`, `types/`, `/bin/`, the vitest-runner coverage scratch folders), editor and OS files including `.vscode/` and `.idea/`, OS duplicate names and backups, and the AI and agent tool files, anchored to the repo root so names like `/prompts/` never hide a source folder. Repo-specific lines go below the closing marker. [The README](../../examples/gitignore/README.md) covers listing tracked files the block now matches (`git ls-files -ci --exclude-standard`) and untracking or moving them. Resolves [#429](#429). ([#449](#449))
- **`bin/` holds only build output.** [package-layout.md](../conventions/package-layout.md) now says a CLI's source lives in `src/bin/<name>.mjs` and tsup builds it, into `bin/` for a bundled build or `dist/bin/` when `dist/` mirrors `src/`, with `"bin"` in `package.json` pointing at the built file. Nothing in `bin/` is hand-written or committed, and vendored binaries live outside it. ([#449](#449))

## Bug Fixes

- **Single-brace README template tokens.** [README.template.md](../../examples/readme/README.template.md) and [readme-format.md](../conventions/readme-format.md) wrote placeholders as double-brace tokens. That is Liquid syntax, and the classic Pages build ran every doc through Liquid, so the docs that quoted the tokens failed the build. All 115 tokens are now single-brace (`{repo}`, `{description}`, …), the docs show them as inline code, and the leftover-token check is `grep -nE '\{[a-z_0-9]+\}' README.md`. `.configs/.prettierrc` turns off embedded code formatting for `README.template.md` so Prettier leaves the tokens in its code samples alone. ([#451](#451))
- **Pages builds with Jekyll 4.** The classic "deploy from a branch" build is pinned to Jekyll 3.10, which runs Liquid even inside code spans, so a doc quoting `${{ … }}` rendered it blank. The new `local-pages.yml` workflow builds `docs/` with Jekyll 4.4 in the official `ruby:4.0` container and deploys it with `actions/deploy-pages`. `docs/_config.yml` sets `render_with_liquid: false` for every page and keeps the classic build's theme, Markdown and plugin settings, and `docs/Gemfile` pins the plugins the classic build loaded implicitly. The built site has the same files as the classic build. ([#452](#452))

## Upgrade notes

- No caller changes needed. Repos adopt the `.gitignore` block as they are swept (CLDMV/packrat#8); a repo with hand-written files in `bin/` should move them to `src/bin/` and build them. Consumers that copied the README template should switch their placeholders to single braces the next time they regenerate a README.
- This repo's Pages source is now "GitHub Actions" (Settings → Pages), which `local-pages.yml` needs.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant