mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
13 lines
413 B
Bash
13 lines
413 B
Bash
adoc() {
|
|
if [ -e "docs/index.html" ] && [ "docs/index.html" -nt "README.adoc" ] ; then
|
|
echo "adoc: 'docs/index.html' is up to date."
|
|
else
|
|
asciidoctor README.adoc -o docs/index.html \
|
|
--require=asciidoctor-diagram \
|
|
--attribute nofooter \
|
|
--attribute toc=left \
|
|
--attribute source-highlighter=highlight.js \
|
|
--attribute sectnums \
|
|
--attribute sectnumlevels=2
|
|
fi
|
|
}
|