Initial release.
This commit is contained in:
brent saner
2024-07-09 23:40:20 -04:00
parent 7ce62f8107
commit d4bb259b83
27 changed files with 4673 additions and 12 deletions

19
.githooks/pre-commit/01-docgen Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
docsdir="${PWD}"
if ! command -v asciidoctor &> /dev/null;
then
exit 0
fi
mkdir -p "${docsdir}"
for f in $(find . -maxdepth 1 -type f -iname "*.adoc"); do
filename=$(basename -- "${f}")
nosuffix="${filename%.*}"
asciidoctor -o "${docsdir}/${nosuffix}.html" "${f}"
git add "${docsdir}/${nosuffix}.html"
done
echo "Regenerated docs"