From d6bcbe91b826a8e2ae3476e9c7196bc1b3a13d6c Mon Sep 17 00:00:00 2001 From: Lorraine Sposto Date: Wed, 18 Apr 2018 15:06:55 -0700 Subject: [PATCH] Issue #10 - AIT GUI docs on RTD - Update bliss-core package - Add bliss config to conf.py --- doc/source/conf.py | 4 ++++ readthedocs.yml | 7 +++++++ setup.py | 5 +---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 readthedocs.yml diff --git a/doc/source/conf.py b/doc/source/conf.py index 5659ddb7..5f6e78a7 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -15,6 +15,10 @@ import sys import os +# BLISS_CONFIG is set to fake location so that the build on ReadTheDocs complete. +if os.environ.get('BLISS_CONFIG', None) is None: + os.environ['BLISS_CONFIG'] = "config.yml" + # 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. diff --git a/readthedocs.yml b/readthedocs.yml new file mode 100644 index 00000000..fe2bf7ea --- /dev/null +++ b/readthedocs.yml @@ -0,0 +1,7 @@ +formats: + - none +python: + pip_install: true + extra_requirements: + - docs + - tests \ No newline at end of file diff --git a/setup.py b/setup.py index 45a740a8..6c9fa05f 100644 --- a/setup.py +++ b/setup.py @@ -85,12 +85,9 @@ def run(self): include_package_data = True, install_requires = ['bliss-core>=0.35.0'], - dependency_links = [ - 'https://bliss.jpl.nasa.gov/pypi/simple/bliss-core/' - ], extras_require = { 'docs': [ - 'Sphinx', + 'Sphinx==1.7.2', 'sphinx_rtd_theme', 'sphinxcontrib-httpdomain' ]