Skip to content

Commit

Permalink
use action for markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Nov 2, 2023
1 parent 26717a6 commit f74de0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ jobs:
cache: npm
- name: Install packages
run: npm ci
- name: Lint Markdown Files
run: npm run lint
- name: Lint with Prettier
run: npm run lint:prettier
- name: Lint with markdownlint
uses: DavidAnson/markdownlint-cli2-action@v13
with:
config: ./.markdownlint.jsonc
globs: |
wiki/**/*.md
#wiki/{de,fr,ja,nl}/**/*.md
- name: Lint Image Sizes
run: npm run lint:images

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"preview": "vitepress preview wiki",
"build": "vitepress build wiki",
"lint:images": "node ./scripts/checkImages.mjs",
"lint": "prettier --check . && markdownlint-cli2 \"wiki/**/*.md\" \"#wiki/{de,fr,ja,nl}/**/*.md\"",
"lint:prettier": "prettier --check .",
"lint": "npm run lint:prettier && markdownlint-cli2 \"wiki/**/*.md\" \"#wiki/{de,fr,ja,nl}/**/*.md\"",
"fmt": "prettier --write . && markdownlint-cli2-fix \"wiki/**/*.md\" \"#wiki/{de,fr,ja,nl}/**/*.md\""
},
"devDependencies": {
Expand Down

0 comments on commit f74de0d

Please sign in to comment.