Make a commit hash to be link to that commit
@@ -68,8 +68,9 @@ if [ "$OUTPUT_FORMAT" = "html" ]; then
# $$ has special meaning in asciidoc, we need to escape it
sed -i 's|\$\$|+++$$+++|g' "$WORKDIR/definitions.adoc"
sed -i '1 i\:last-update-label!:' "$WORKDIR/"*.adoc
- sed -i -e "/KubeVirt API\$/a\\:revnumber: $(git rev-parse HEAD || echo no-revision)" \
- -e "/__Terms of service__ :/a\\__Version__ : {revnumber}" \
+ gitcommithash="$(git rev-parse HEAD || echo no-revision)"
+ sed -i -e "/KubeVirt API\$/a\\:revnumber: ${gitcommithash}" \
+ -e "/__Terms of service__ :/a\\__Version__ : https://github.com/kubevirt/kubevirt/commit/{revnumber}[{revnumber}]" \
"$WORKDIR/overview.adoc"
# Generate *.html files from *.adoc
