Skip to content

Commit

Permalink
Add Markdownlint to CI (and ignore all rules for now) (#6842)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanKilleen authored Jan 22, 2024
1 parent 5278d90 commit edaacd0
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/linters/.markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
###########################
###########################
## Markdown Linter rules ##
###########################
###########################

# Linter rules doc:
# - https://github.com/DavidAnson/markdownlint
#
# Note:
# To comment out a single error:
# <!-- markdownlint-disable -->
# any violations you want
# <!-- markdownlint-restore -->
#

###############
# Rules by id #
###############
MD001: false
MD009: false
MD012: false
MD013: false
MD018: false
MD022: false
MD024: false
MD025: false
MD026: false
MD028: false
MD029: false
MD031: false
MD032: false
MD033: false
MD034: false
MD036: false
MD037: false
MD040: false
MD041: false
MD045: false
MD053: false
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,20 @@ jobs:

- name: run cspell
run: cspell --config ./cSpell.json "website/src/**/*.md" --no-progress --no-cache

linting:
name: "Markdown linting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out the code
- uses: actions/setup-node@v4
name: Setup node
with:
node-version: '20'
- run: npm install -g markdownlint-cli2
name: Install markdownlint-cli2
- run: markdownlint-cli2 --config ".github/linters/.markdownlint.yml" "website/src/**/*.md"
name: run Markdownlint
website-tests:
name: "Website Tests"
needs: check-changes
Expand Down
23 changes: 23 additions & 0 deletions .markdownlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"MD001": false,
"MD009": false,
"MD012": false,
"MD013": false,
"MD018": false,
"MD022": false,
"MD024": false,
"MD025": false,
"MD026": false,
"MD028": false,
"MD029": false,
"MD031": false,
"MD032": false,
"MD033": false,
"MD034": false,
"MD036": false,
"MD037": false,
"MD040": false,
"MD041": false,
"MD045": false,
"MD053": false
}

0 comments on commit edaacd0

Please sign in to comment.