Skip to content

Commit 44eab43

Browse files
committed
Fixed PYTHONPATH for Sphinx docs generation.
1 parent 3310a23 commit 44eab43

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ venv/
5353
Vagrantfile.local
5454
*.swp
5555
.bundle
56+
/__init__.py
5657

5758
# Chef setup
5859
.chef

docs/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
# If extensions (or modules to document with autodoc) are in another directory,
1818
# add these directories to sys.path here. If the directory is relative to the
1919
# documentation root, use os.path.abspath to make it absolute, like shown here.
20-
#sys.path.insert(0, os.path.abspath('.'))
21-
sys.path.insert(0, os.path.abspath('..'))
20+
21+
# Some hackery here to get deis.py to be importable as client.deis
22+
open(os.path.join('..', '__init__.py'), 'a')
23+
sys.path.insert(0, os.path.abspath(os.path.join('..')))
24+
sys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))
2225
# create local_settings.py for SECRET_KEY if necessary
2326
local_settings_path = os.path.abspath(
2427
os.path.join('..', 'controller', 'deis', 'local_settings.py'))
@@ -137,7 +140,7 @@
137140
# Add any paths that contain custom static files (such as style sheets) here,
138141
# relative to this directory. They are copied after the builtin static files,
139142
# so a file named "default.css" will overwrite the builtin "default.css".
140-
html_static_path = ['../web/static']
143+
html_static_path = ['../controller/web/static']
141144

142145
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143146
# using the given strftime format.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Deis is a Django/Celery API server, Python CLI and set of
99
`Chef cookbooks`_ that combine to provide a Heroku-inspired application
1010
platform for public and private clouds. Your PaaS. Your Rules.
1111

12-
.. image:: ../web/static/img/deis-graphic.png
12+
.. image:: ../controller/web/static/img/deis-graphic.png
1313
:alt: Deis cover logo
1414

1515
If you are new to Deis, you should start with :ref:`Concepts`

0 commit comments

Comments
 (0)