Commit 8d91dbdd authored by Dimitris Lampridis's avatar Dimitris Lampridis

doc: automate versioning of docs

parent 63748f7f
......@@ -69,10 +69,11 @@ author = u'Dimitris Lampridis <dimitris.lampridis@cern.ch>'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'1.0'
# The full version, including alpha/beta/rc tags.
release = u'1.0'
import os
import re
release = os.popen('git describe --tags').read().strip()
version = re.sub('^v', '', release.split('-')[0])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment