From 9851bc38ff8a625e539d2ddc73c298e332066e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz> Date: Tue, 17 Jan 2017 15:37:39 +0100 Subject: [PATCH] Version in footer --- mkdocs.yml | 2 +- ver.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 ver.sh diff --git a/mkdocs.yml b/mkdocs.yml index 9135d261e..39b12f55d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,7 +3,7 @@ theme_dir: 'material' docs_dir: docs.it4i # Copyright -copyright: Copyright (c) 2016 IT4Innovations +copyright: Copyright (c) 2016 IT4Innovations__VERSION__ pages: - Home: index.md diff --git a/ver.sh b/ver.sh new file mode 100755 index 000000000..06814384e --- /dev/null +++ b/ver.sh @@ -0,0 +1,3 @@ +#!/bin/bash +VER=$(git log --pretty=format:'%h / %an / %ai' -n 1) +sed "s,__VERSION__,\<\/BR\>$VER," mkdocs.yml -i -- GitLab