X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docs%2Fconf.py;h=973ef9a1b42ac2b177b41897164a1d894d2f0b25;hb=a4c5fec24a23fac9e72eab5605ef65a76b9e74dc;hp=2c556729d23e9e55c6783f4be2bd5c63db0d1c48;hpb=17b45c65afac23a123e66834f93049a1c7e45201;p=osm%2FN2VC.git diff --git a/docs/conf.py b/docs/conf.py index 2c55672..973ef9a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,6 +15,11 @@ import sys import os +from pathlib import Path + +here = Path(__file__).absolute().parent +version = (here.parent / 'VERSION').read_text().strip() + # 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. @@ -32,6 +37,7 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.viewcode', + 'sphinxcontrib.asyncio', ] # Add any paths that contain templates here, relative to this directory. @@ -49,8 +55,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'libjuju' -copyright = u'2016, Canonical' +project = u'juju' +copyright = u'2016, Canonical Ltd.' author = u'Canonical' # The version info for the project you're documenting, acts as replacement for @@ -58,9 +64,9 @@ author = u'Canonical' # built documents. # # The short X.Y version. -version = u'0.0.0' +version = version # The full version, including alpha/beta/rc tags. -release = u'0.0.0' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.