Skip to content

Commit f6f13b4

Browse files
mboersmaGabriel Monroy
authored andcommitted
Fixed #174 -- updated Sphinx docs to match refactored modules.
1 parent cd28ce4 commit f6f13b4

25 files changed

Lines changed: 170 additions & 280 deletions

api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ def generate_app_name():
6161
'yachting', 'yardbird', 'yearbook', 'yearling', 'yeomanry', 'yodeling',
6262
'zaniness', 'zeppelin', 'ziggurat', 'zirconia', 'zoologer', 'zucchini',
6363
]
64-
return '{}-{}'.format(
64+
return "{}-{}".format(
6565
random.choice(adjectives), random.choice(nouns))

cm/chef.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@
4444
_valid_pem_path = os.path.join(CHEF_CONFIG_PATH, 'validation.pem')
4545
CHEF_VALIDATION_KEY = subprocess.check_output(
4646
['sudo', '/bin/cat', _valid_pem_path]).strip('\n')
47-
except Exception as e:
48-
raise EnvironmentError('Failed to auto-configure Chef -- {}'.format(e))
47+
except Exception as err:
48+
msg = "Failed to auto-configure Chef -- {}".format(err)
49+
if os.environ.get('READTHEDOCS'):
50+
# Just print the error if Sphinx is running
51+
print(msg)
52+
else:
53+
raise EnvironmentError(msg)
4954

5055

5156
def _get_client():

cm/views.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ docopt==0.6.1
2222
requests==1.2.3
2323

2424
# Deis documentation requirements
25-
Sphinx>=1.2b1
25+
Sphinx>=1.2b2
2626
smartypants>=1.8.2
2727
sphinxcontrib-httpdomain>=1.1.9
2828

docs/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PYTHON = python
99
ZIP = zip
1010
BUILDDIR = _build
1111

12+
READTHEDOCS = true
13+
export READTHEDOCS
14+
1215
# User-friendly check for sphinx-build
1316
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
1417
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)

docs/server/api.ssh.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:description: Python API Reference for the Deis api.ssh module
2+
:keywords: deis, api.ssh, python, api
3+
4+
=======
5+
api.ssh
6+
=======
7+
8+
.. contents::
9+
:local:
10+
.. currentmodule:: api.ssh
11+
12+
.. automodule:: api.ssh
13+
:members:
14+
:undoc-members:

docs/server/api.tasks.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:description: Python API Reference for the Deis api.tasks module
2+
:keywords: deis, api.tasks, python, api
3+
4+
=========
5+
api.tasks
6+
=========
7+
8+
.. contents::
9+
:local:
10+
.. currentmodule:: api.tasks
11+
12+
.. automodule:: api.tasks
13+
:members:
14+
:undoc-members:
15+
16+
.. autofunction:: build_layer(layer)
17+
.. autofunction:: destroy_layer(layer)
18+
.. autofunction:: build_node(node)
19+
.. autofunction:: destroy_node(node)
20+
.. autofunction:: converge_node(node)
21+
.. autofunction:: run_node(node, command)
22+
.. autofunction:: build_formation(formation)
23+
.. autofunction:: destroy_formation(formation)
24+
.. autofunction:: converge_formation(formation)
25+
.. autofunction:: build_app(app)
26+
.. autofunction:: destroy_app(app)
27+
.. autofunction:: converge_controller()

docs/server/celerytasks.azuresms.rst

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/server/celerytasks.chef.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/server/celerytasks.chef_mock.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)