From c28fc454612a1f395c78b539482a1bb59ede368e Mon Sep 17 00:00:00 2001 From: Fedor Gogolev Date: Mon, 2 Nov 2015 18:10:26 +0300 Subject: [PATCH] Test documentation in travis --- .travis.yml | 4 ++-- docs/conf.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7b342f..79c4d7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ python: - "2.7" - "3.3" - "3.4" -install: pip install . -script: nosetests +install: pip install .; pip install sphinx sphinx_rtd_theme +script: nosetests; sphinx-build -b html docs docs/_build notifications: webhooks: - http://moriarty.thesharp.org:5000/travis/2c27baee8754c01522cf751c1ed393b1/ diff --git a/docs/conf.py b/docs/conf.py index 0a04ee8..5ba19a6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,8 @@ import os # 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. -#sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------