Commit f2e22422 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Merge branch 'patch-26' into 'master'

Dynamically get version for docs

Closes #26

See merge request !39
parents 304ee445 1ecf979f
Pipeline #10799 failed with stages
in 11 minutes and 57 seconds
......@@ -11,7 +11,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys, os
import sys, os, re
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
......@@ -47,11 +47,13 @@ copyright = u'2013, The Distro Tracker Developers'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
with open('../debian/changelog') as f:
res = re.search(r'\((\d.*)\)', f.readline())
version = res.group(1)
# The short X.Y version.
version = '0.1'
version = version
# The full version, including alpha/beta/rc tags.
release = '0.1'
release = version
# 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