feat: configure spell check

pull/1/head
Aravinth Manivannan 2022-04-08 17:54:33 +05:30
parent 7ac2e494cd
commit 07582bbbfd
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
default: ## Build the website default: ## Build the website
./scripts/spellcheck.sh --check
./scripts/zola.sh build ./scripts/zola.sh build
clean: ## Clean build assets clean: ## Clean build assets

View File

@ -49,12 +49,14 @@ download() {
cd $TMP_DIR cd $TMP_DIR
tar -xf $MISSPELL_TARBALL; tar -xf $MISSPELL_TARBALL;
cd $PROJECT_ROOT cd $PROJECT_ROOT
else
echo "[*] Found misspell"
fi fi
} }
spell_check_codespell() { spell_check_codespell() {
_check(){ _check(){
codespell $FLAGS --ignore-words-list=$1 $PROJECT_ROOT/$2 || true codespell $FLAGS $PROJECT_ROOT/$1 #|| true
} }
_check README.md _check README.md
_check contents _check contents
@ -65,7 +67,7 @@ spell_check_misspell() {
download download
_check(){ _check(){
$MISSPELL $FLAGS -i $1 $PROJECT_ROOT/$2 $MISSPELL $FLAGS $PROJECT_ROOT/$1
} }
_check contents _check contents