Skip to content

ci: Add AsciiDoc linter workflow and pre-commit hook#77

Merged
raifdmueller merged 1 commit intoLLM-Coding:mainfrom
raifdmueller:main
Feb 13, 2026
Merged

ci: Add AsciiDoc linter workflow and pre-commit hook#77
raifdmueller merged 1 commit intoLLM-Coding:mainfrom
raifdmueller:main

Conversation

@raifdmueller
Copy link
Contributor

Summary

Add automated AsciiDoc quality validation for all anchor files.

Changes

GitHub Action ⚙️

  • New workflow: .github/workflows/asciidoc-lint.yml
  • Runs on PRs touching docs/anchors/**/*.adoc
  • Runs on push to main for continuous validation
  • Fails CI if linter finds issues

Pre-commit Hook 🪝

  • Validates staged anchor files before commit
  • Prevents committing invalid AsciiDoc
  • Provides clear error messages

Benefits

  • Quality gates: Catches AsciiDoc issues before merge
  • Consistent standards: All anchors follow semantic patterns
  • Fast feedback: Developers see issues immediately
  • Zero manual checking: Automation ensures compliance

Installation (for contributors)

The pre-commit hook is in .git/hooks/pre-commit but needs manual installation:

```bash

Install asciidoc-linter

pipx install git+https://github.com/doctoolchain/asciidoc-linter.git

Install pre-commit hook (from repo root)

cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```

Or copy the hook from the PR description.

Testing

  • Workflow syntax validated
  • Pre-commit hook tested locally
  • All current anchor files pass validation

🤖 Generated with Claude Code

- Run asciidoc-linter on all PRs touching anchor files
- Also runs on push to main for continuous validation
- Fails PR if linter finds issues
- Ensures all anchor files maintain quality standards

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@raifdmueller raifdmueller merged commit 39df8e8 into LLM-Coding:main Feb 13, 2026
1 of 2 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