summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-07-04 12:25:09 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-07-04 12:25:09 +0300
commitbf723307f609ca12260c4429dcb013101d95c2cf (patch)
tree01fcf69b5da880951f7c10d6f9c05df5a2d5f33f /docs
parentfca9c6cb38ecf179fbe07ff6e25f58a8b98a944f (diff)
downloadpysaml2-bf723307f609ca12260c4429dcb013101d95c2cf.tar.gz
Set the correct version in the docs
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 6bb2bb81..71e81bba 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -11,9 +11,14 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+from __future__ import unicode_literals
+
+import os
+
import alabaster
+import saml2.version
+
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -39,15 +44,15 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-project = u'pysaml2'
-copyright = u'2010-2011, Roland Hedberg'
+project = 'pysaml2'
+copyright = '2010-2011, Roland Hedberg'
# 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.
#
# The short X.Y version.
-version = ''
+version = str(saml2.version.version)
# The full version, including alpha/beta/rc tags.
release = ''
@@ -180,8 +185,13 @@ htmlhelp_basename = 'pysaml2doc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
- ('index', 'pysaml2.tex', u'pysaml2 Documentation',
- u'Roland Hedberg', 'manual'),
+ (
+ 'index',
+ 'pysaml2.tex',
+ 'pysaml2 Documentation',
+ 'Roland Hedberg',
+ 'manual',
+ ),
]
# The name of an image file (relative to this directory) to place at the top of