Skip to content

Commit cee9767

Browse files
author
Nathan Beittenmiller
committed
Testing new documentation format and examples
1 parent 098b44e commit cee9767

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

SoftLayer/managers/hardware.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ def cancel_hardware(self, id, reason='unneeded', comment=''):
2929
""" Cancels the specified dedicated server.
3030
3131
:param int id: The ID of the hardware to be cancelled.
32-
:param bool immediate: If true, the hardware will be cancelled
33-
immediately. Otherwise, it will be
34-
scheduled to cancel on the anniversary date.
35-
:param string reason: The reason code for the cancellation.
32+
:param string reason: The reason code for the cancellation. This should
33+
come from :func:`get_cancellation_reasons`.
34+
:param string comment: An optional comment to include with the
35+
cancellation.
36+
37+
>>> cancel_hardware(123)
3638
"""
3739

3840
reasons = self.get_cancellation_reasons()

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@
9292

9393
# The theme to use for HTML and HTML Help pages. See the documentation for
9494
# a list of builtin themes.
95-
html_theme = 'nature'
95+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
96+
if on_rtd:
97+
html_theme = 'default'
98+
html_style = 'default.css'
99+
else:
100+
html_theme = 'nature'
101+
html_style = "style.css"
96102

97103
# Theme options are theme-specific and customize the look and feel of a theme
98104
# further. For a list of options available for each theme, see the
@@ -122,7 +128,6 @@
122128
# relative to this directory. They are copied after the builtin static files,
123129
# so a file named "default.css" will overwrite the builtin "default.css".
124130
html_static_path = ['_static']
125-
html_style = "style.css"
126131

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

0 commit comments

Comments
 (0)