Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/asciidoc-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: AsciiDoc Linter

on:
pull_request:
paths:
- 'docs/anchors/**/*.adoc'
push:
branches: [main]
paths:
- 'docs/anchors/**/*.adoc'

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install AsciiDoc Linter
run: |
pip install git+https://github.com/doctoolchain/asciidoc-linter.git

- name: Run AsciiDoc Linter
run: |
echo "Linting AsciiDoc anchor files..."
asciidoc-linter docs/anchors/*.adoc --format console

- name: Summary
if: success()
run: |
echo "✓ All anchor files passed AsciiDoc linter validation"
Loading