feat: configure spell check
parent
7ac2e494cd
commit
07582bbbfd
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue