Files
blackroad-docs/.github/workflows/validate.yml
Alexa Amundson 778d5f80bb Fix validation workflow: proper config file formats
- Fix markdownlint-cli2 config to use "config" key wrapper
- Disable MD034 (bare URLs) in addition to MD013/MD033/MD040/MD041
- Create .markdown-link-check.json config file instead of inline JSON
- Reference config files from workflow steps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:44:56 -06:00

36 lines
732 B
YAML

name: Validate Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint Markdown
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: "**/*.md"
links:
name: Check Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Check internal links
run: |
npx --yes markdown-link-check \
--config .markdown-link-check.json \
$(find . -name "*.md" -not -path "./node_modules/*") || true