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.
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
+sys.path.append(os.path.abspath('_extensions/'))
extensions = [
'sphinx.ext.autodoc',
+ 'sphinx.ext.autosummary',
+ 'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
+ 'sphinxcontrib.asyncio',
+ 'automembersummary',
]
# Add any paths that contain templates here, relative to this directory.
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
# 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.
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'alabaster'
+html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
+
+def setup(app):
+ app.add_stylesheet('custom.css')