Add format script

Runs HTML Tidy.

(The expected version is tidy-html5 from https://www.html-tidy.org/)
This commit is contained in:
Lassi Kortela 2024-06-16 16:54:48 +03:00
parent 764041977d
commit 49b1bec85d
1 changed files with 13 additions and 0 deletions

13
scripts/format.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")"
cd ..
echo "Entering directory '$PWD'"
set -x
tidy \
--indent yes \
--quiet yes \
--show-filename yes \
--tidy-mark no \
--write-back yes \
www/*.html