Skip to content

Commit

Permalink
Merge pull request #34 from socallinuxexpo/CommitDate
Browse files Browse the repository at this point in the history
Add Commit date
  • Loading branch information
capsulecorplab authored Mar 10, 2023
2 parents a44a9e4 + ff23b2e commit c370e5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fi

#### generate scale av user manual as pdf ####
clitool="asciidoctor"
cmdargs="user_manual/index.adoc -o dist/scale-av-user-manual.pdf -r asciidoctor-pdf -acommitHash=$(git rev-parse --short HEAD) -r asciidoctor-diagram -b pdf -a pdf-theme=user_manual/theme.yml"
cmdargs="user_manual/index.adoc -o dist/scale-av-user-manual.pdf -r asciidoctor-pdf -acommitHash=$(git rev-parse --short HEAD) -acommitDate=$(git show -s --format=%cI HEAD) -r asciidoctor-diagram -b pdf -a pdf-theme=user_manual/theme.yml"
cmd="$clitool $cmdargs"
workdir=$project_root
podmancmd="podman run --rm -v "$PWD:/src" -w "/src" docker.io/asciidoctor/docker-asciidoctor:1.27.0 $cmd"
Expand Down
2 changes: 2 additions & 0 deletions user_manual/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ v{version}
:toc: left
:toclevels: 3

Last Updated: {commitDate}

Document generated from https://github.com/socallinuxexpo/scale-av-web/commit/{commitHash}[{commitHash}]

ifndef::backend-pdf[]
Expand Down
4 changes: 2 additions & 2 deletions user_manual/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ footer:
columns: =100%
recto:
center:
content: '{section-or-chapter-title} | *{page-number}* | v{version} https://github.com/socallinuxexpo/scale-av-web/commit/{commitHash}[{commitHash}]'
content: '{section-or-chapter-title} | *{page-number}* | v{version} https://github.com/socallinuxexpo/scale-av-web/commit/{commitHash}[{commitHash}] | {commitDate}'
verso:
center:
content: '{section-or-chapter-title} | *{page-number}* | v{version} https://github.com/socallinuxexpo/scale-av-web/commit/{commitHash}[{commitHash}]'
content: '{section-or-chapter-title} | *{page-number}* | v{version} https://github.com/socallinuxexpo/scale-av-web/commit/{commitHash}[{commitHash}] | {commitDate}'

0 comments on commit c370e5c

Please sign in to comment.