Skip to content

fix: single-brace {token} placeholders in the README template - #451

Merged
Shinrai merged 2 commits into
nextfrom
fix/readme-template-delimiters
Nov 8, 2026
Merged

Shinrai merged 2 commits into
nextfrom
fix/readme-template-delimiters

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

📦 Dependencies

No dependency updates

🔧 Other Changes

👥 Contributors

GitHub Pages builds docs/ with Jekyll, which runs every Markdown file
through Liquid. Liquid read the template's {{token}} placeholders in
docs/conventions/readme-format.md as template variables, and the lone
{{ in its 'search for a leftover' sentence was a syntax error, so every
Pages build since v4.35.0 failed and the site (including the ruleset
generator) stopped updating.

Tokens in examples/readme/README.template.md and the doc are now
{token}, which Liquid ignores. Prettier no longer formats code blocks in
the template, because it would rewrite import {import_name} as
import { import_name } and turn {quick_start_esm} into a JS block.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 8, 2026
@Shinrai
Shinrai merged commit 6c99c55 into next Nov 8, 2026
14 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/readme-template-delimiters 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: 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