Skip to content

Guard against space-titled admonitions (CI + CLAUDE.md) - #8

Merged
tanglearncode merged 1 commit into
mainfrom
docs/admonition-guard
Jul 12, 2026
Merged

tanglearncode merged 1 commit into
mainfrom
docs/admonition-guard

Conversation

@tanglearncode

Copy link
Copy Markdown
Contributor

Why

Follow-up to #7. Titled admonitions must use the bracket form :::tip[Title] because the faster/mdx-rs pipeline doesn't recognize the legacy space form :::tip Title (it renders as literal ::: text). This adds guardrails so it can't silently regress.

Changes

  • CI lint step (.github/workflows/ci.yml): fails the build if any :::type Title space form appears in docs/, before the build step. Verified it ignores the bracket form and passes on the current clean docs.
  • CLAUDE.md: documents the rule and points at the CI check, so future edits (human or agent) use the bracket syntax.

🤖 Generated with Claude Code

Titled admonitions must use bracket syntax (:::tip[Title]) under the
faster/mdx-rs pipeline; the space form renders as literal text. Add a CI
lint step that fails the build if the space form reappears, and document
the rule in CLAUDE.md so it doesn't regress.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tanglearncode
tanglearncode merged commit 544f31c into main Jul 12, 2026
1 check 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