draft in progress

This commit is contained in:
brent saner
2024-07-07 23:33:21 -04:00
commit ca2010e62c
15 changed files with 4135 additions and 0 deletions

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

@@ -0,0 +1,22 @@
#!/bin/bash
docsdir="${PWD}/docs"
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 \
-a allow-uri-read \
-o "${docsdir}/${nosuffix}.html" \
"${f}"
git add "${docsdir}/${nosuffix}.html"
done
echo "Regenerated docs"