File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2525 with :
2626 node-version : ' 20.x'
2727 - name : Validate markdown
28- run : npx --yes mdv ./{ versions,schemas/**}/ *.md
28+ run : npx --yes mdv ./versions/[1-2]. *.md
2929 - name : Lint markdown
30- run : npx --yes markdownlint-cli --config .markdownlint.yaml ./{ versions,schemas/**}/ *.md
30+ run : npx --yes markdownlint-cli --config .markdownlint.yaml versions/1.0.[^0].md versions/1.[1-9].*.md versions/2. *.md
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "build" : " bash ./scripts/md2html/build.sh" ,
77 "test" : " echo \" Error: no test specified\" && exit 1" ,
8- "format-markdown" : " bash ./scripts/format-markdown.sh ./{ versions,schemas/**}/ *.md"
8+ "format-markdown" : " bash ./scripts/format-markdown.sh versions/1.0.[^0].md versions/1.[1-9].*.md versions/2. *.md"
99 },
1010 "repository" : {
1111 "type" : " git" ,
Original file line number Diff line number Diff line change 33SRCDIR=" $( dirname " ${BASH_SOURCE[0]} " ) " # check on Windows
44
55for filename in $* ; do
6+ # check if the $filename exists and if it's writeable
7+ if [ ! -w $filename ]; then
8+ echo " No matching file found: $filename "
9+ continue ;
10+ fi
611 # mostly to format code blocks with examples, unfortunately messes up bullet lists and tables
712 npx prettier --write --single-quote $filename
813
You can’t perform that action at this time.
0 commit comments