...fixing render
This commit is contained in:
parent
8039ad7935
commit
f087b55e9c
23
.githooks/pre-commit/01-docgen
Executable file
23
.githooks/pre-commit/01-docgen
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
#docsdir="${PWD}/docs"
|
||||
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 \
|
||||
-a allow-uri-read \
|
||||
-o "${docsdir}/${nosuffix}.html" \
|
||||
"${f}"
|
||||
git add "${docsdir}/${nosuffix}.html"
|
||||
done
|
||||
echo "Regenerated docs"
|
2878
README.html
Normal file
2878
README.html
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user