Skip to content

Commit

Permalink
Try to fix readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jul 12, 2015
1 parent 13ec997 commit 2828e7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
@@ -1,4 +1,5 @@
-e git://github.com/tuomas2/automate.git@master#egg=automate
sphinx
-e .
-e git://github.com/tuomas2/automate-arduino.git@master#egg=automate-arduino
-e git://github.com/tuomas2/automate-rpio.git@master#egg=automate-rpio
-e git://github.com/tuomas2/automate-wsgi.git@master#egg=automate-wsgi
Expand Down
7 changes: 2 additions & 5 deletions docs/source/conf.py
Expand Up @@ -18,14 +18,11 @@
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

# Get the project root dir, which is the parent dir of this
#cwd = os.getcwd()
#project_root = os.path.dirname(cwd)

project_root = os.path.abspath(os.path.join('..', '..', 'src'))
# Insert the project root dir as the first element in the PYTHONPATH.
# This lets us ensure that the source package is imported, and that its
# version is used.
#sys.path.insert(0, project_root)

sys.path.insert(0, project_root)
# 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.
Expand Down

0 comments on commit 2828e7a

Please sign in to comment.