Skip to content

Commit

Permalink
Improve lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Jul 24, 2023
1 parent c74f05d commit b3949a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ prettier --check "${MARKDOWN_FILES_ARRAY[@]}"

echo "Running spellcheck..."
codespell "${SPELL_FILES_ARRAY[@]}"

echo "Checking compile passes..."
./scripts/compile.sh

echo "✅ All OK!"
7 changes: 5 additions & 2 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -euxo pipefail
set -euo pipefail

if [ $# -eq 0 ]; then
BASE_URL="https://web.evanchen.cc"
Expand All @@ -12,7 +12,10 @@ else
fi

python3 poole/poole.py -b --base-url="$BASE_URL" \
--md-ext=extra --md-ext=smarty --md-ext=sane_lists --md-ext=mdx_truly_sane_lists
--md-ext=extra \
--md-ext=smarty \
--md-ext=sane_lists \
--md-ext=mdx_truly_sane_lists >/dev/null

tidy -config ./tidyrc -qe ./output/*.html
prettier -w ./output/*.html

0 comments on commit b3949a2

Please sign in to comment.