Commit a0b4899c authored by yoogx's avatar yoogx
Browse files

* Get year and version from environment

parent 1031e26a
......@@ -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, time
import sphinx_bootstrap_theme
# If extensions (or modules to document with autodoc) are in another directory,
......@@ -40,18 +40,28 @@ source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
def get_copyright():
return u'2003-2009 Telecom ParisTech, 2009-%s ISAE, ESA' % time.strftime("%Y")
# General information about the project.
project = u'Ocarina'
copyright = u'2003-2009 Telecom ParisTech, 2009-2014 ISAE, ESA'
copyright = get_copyright()
def get_version():
"""Extract the version from"""
for line in file("../").readlines():
if line.startswith("AC_INIT"):
return line.split(",")[1]
raise Exception("Cannot find version number")
# 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 = '2.0w'
version = get_version()
# The full version, including alpha/beta/rc tags.
release = '2.0w'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Supports Markdown
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