mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 17:56:26 +00:00
Add basic scripts for local markdown linting
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
10
scripts/local-markdownlint-and-fix.sh
Executable file
10
scripts/local-markdownlint-and-fix.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
docker run --rm \
|
||||
-v "$(pwd):/data:ro" \
|
||||
avtodev/markdown-lint:v1 \
|
||||
--config /data/.markdownlint.json \
|
||||
--ignore /data/_snippets \
|
||||
--fix \
|
||||
/data/**/*.md
|
||||
|
||||
|
||||
# --rules /lint/rules/changelog.js \
|
||||
9
scripts/local-markdownlint.sh
Executable file
9
scripts/local-markdownlint.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
docker run --rm \
|
||||
-v "$(pwd):/data:ro" \
|
||||
avtodev/markdown-lint:v1 \
|
||||
--config /data/.markdownlint.json \
|
||||
--ignore /data/_snippets \
|
||||
/data/**/*.md
|
||||
|
||||
|
||||
# --rules /lint/rules/changelog.js \
|
||||
Reference in New Issue
Block a user