From c0f1bd709f1a802243edeb48916bdecbe9eb06e1 Mon Sep 17 00:00:00 2001 From: "Evan.Mattiza" Date: Sun, 28 May 2017 16:47:08 -0500 Subject: [PATCH] Versioning in docs off Maya Package Signed-off-by: Evan.Mattiza --- docs/source/conf.py | 11 +++++++---- docs/source/index.rst | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 4e78a9c..6cb4c02 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,10 +17,13 @@ # 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. # -# import os -# import sys +import os +import sys # sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('..')) +sys.path.insert(0, os.path.abspath('_themes')) +import maya # -- General configuration ------------------------------------------------ @@ -58,9 +61,9 @@ author = 'Kenneth Reitz' # built documents. # # The short X.Y version. -version = '' +version = maya.__version__ # The full version, including alpha/beta/rc tags. -release = '' +release = maya.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/index.rst b/docs/source/index.rst index b8d9e5b..9273452 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -74,6 +74,8 @@ Release v\ |version|. (:ref:`Installation `) :maxdepth: 2 :caption: Contents: + user/install + Indices and tables ==================