Skip to content

Commit

Permalink
t3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 13, 2024
1 parent 70148d7 commit ff1bd9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .drevops/docs/.utils/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ for file in "${targets[@]}"; do
sed -E 's/<br \/>|<br\/>|<br>/ /g' |
# Remove HTML.
sed -E 's/<([^<]+)>//g' |
# Remove code blocks.
sed '/^```/,/^```/d' |
# Remove inline code.
sed 's/`[^`]*`//g' |
# Remove anchors.
sed -E 's/\[.+\]\([^\)]+\)//g' |
# Remove links.
sed -E 's/http(s)?:\/\/([^ ]+)//g' |
aspell --lang=en --encoding=utf-8 --personal="${dictionary}" list
aspell --lang=en --encoding=utf-8 --personal="${dictionary}" list | tee /dev/stderr | [ "$(wc -l)" -eq 0 ]

if [ "$?" -ne 0 ]; then
exit 1
Expand Down

0 comments on commit ff1bd9c

Please sign in to comment.