Start setting revision date for asciidoctor build
The revdate attribute is used internally and included in the document
header. It can also be overridden in the document body just after the
title line if preferred.
@@ -42,10 +42,10 @@ jobs:
command: |
set -ex
shopt -s extglob globstar nullglob
- asciidoctor --failure-level=ERROR *.adoc **/*.adoc
+ asciidoctor -a revdate=`date +%Y-%m-%d` --failure-level=ERROR *.adoc **/*.adoc
for a in $(ls *.html **/*.html); do set +x; mkdir -p /tmp/docs/$(dirname $a); cp $a /tmp/docs/$(dirname $a)/; done
set -x
- asciidoctor-pdf *.adoc **/*.adoc
+ asciidoctor-pdf -a revdate=`date +%Y-%m-%d` *.adoc **/*.adoc
for a in $(ls *.pdf **/*.pdf); do set +x; mkdir -p /tmp/docs/$(dirname $a); cp $a /tmp/docs/$(dirname $a)/; done
- persist_to_workspace:
root: /tmp/docs
