Skip to content

Commit f950f66

Browse files
authored
docs: Enhanced documentation (#174)
* docs: Enhanced documentation * ci: Fix lint problems
1 parent 030d2c8 commit f950f66

File tree

7 files changed

+664
-116
lines changed

7 files changed

+664
-116
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
7-
SPHINXPROJ = python-sdc-client
7+
SPHINXPROJ = sysdig-sdk-python
88
SOURCEDIR = .
99
BUILDDIR = _build
1010

doc/conf.py

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Add any Sphinx extension module names here, as strings. They can be
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
33-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode']
33+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.napoleon']
3434

3535
# Add any paths that contain templates here, relative to this directory.
3636
templates_path = ['_templates']
@@ -45,7 +45,7 @@
4545
master_doc = 'index'
4646

4747
# General information about the project.
48-
project = u'python-sdc-client'
48+
project = u'Sysdig SDK for Python'
4949
copyright = u'2016, Sysdig Inc.'
5050
author = u'Sysdig Inc.'
5151

@@ -81,13 +81,23 @@
8181
# The theme to use for HTML and HTML Help pages. See the documentation for
8282
# a list of builtin themes.
8383
#
84-
html_theme = 'classic'
84+
html_theme = 'sphinx_material'
8585

8686
# Theme options are theme-specific and customize the look and feel of a theme
8787
# further. For a list of options available for each theme, see the
8888
# documentation.
8989
#
90-
# html_theme_options = {}
90+
html_theme_options = {
91+
'nav_title': 'Sysdig SDK for Python',
92+
'base_url': 'https://sysdiglabs.github.io/sysdig-sdk-python',
93+
'color_primary': 'blue',
94+
'color_accent': 'light-blue',
95+
'repo_url': 'https://github.com/sysdiglabs/sysdig-sdk-python/',
96+
'repo_name': 'Sysdig SDK for Python',
97+
'globaltoc_depth': 3,
98+
'globaltoc_collapse': False,
99+
'globaltoc_includehidden': False,
100+
}
91101

92102
# Add any paths that contain custom static files (such as style sheets) here,
93103
# relative to this directory. They are copied after the builtin static files,
@@ -159,9 +169,24 @@ def find_line():
159169

160170
if domain != 'py' or not info['module']:
161171
return None
172+
162173
# tag = 'master' if 'dev' in release else ('v' + release)
163-
url = "https://github.com/draios/python-sdc-client/blob/master/sdcclient/_client.py"
174+
url = "https://github.com/sysdiglabs/sysdig-sdk-python/blob/master/sdcclient/_client.py"
164175
try:
165176
return url + '#L%d' % find_line()
166177
except Exception:
167178
return url
179+
180+
181+
# Napoleon settings
182+
napoleon_google_docstring = True
183+
napoleon_include_init_with_doc = False
184+
napoleon_include_private_with_doc = False
185+
napoleon_include_special_with_doc = True
186+
napoleon_use_admonition_for_examples = False
187+
napoleon_use_admonition_for_notes = False
188+
napoleon_use_admonition_for_references = False
189+
napoleon_use_ivar = False
190+
napoleon_use_param = True
191+
napoleon_use_rtype = True
192+
napoleon_type_aliases = None

doc/index.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Sysdig Cloud Python Script Library
6+
Sysdig SDK for Python
77
==================================
88

9-
This page documents the functions available in the `Python Script Library <https://sysdig.gitbooks.io/sysdig-cloud-api/content/python.html>`_ for `Sysdig Cloud <https://sysdig.com/>`_. It is is a wrapper around the `Sysdig Cloud API <https://sysdig.gitbooks.io/sysdig-cloud-api/content/>`_.
9+
This page documents the functions available in the `Python Script Library <https://sysdig.gitbooks.io/sysdig-cloud-api/content/python.html>`_ for `Sysdig Platform <https://sysdig.com/>`_. It is is a wrapper around the `Sysdig Cloud API <https://sysdig.gitbooks.io/sysdig-cloud-api/content/>`_.
1010

1111
* :ref:`genindex`
1212
* :ref:`search`
1313

14-
15-
16-
Function List
17-
=============
14+
Sysdig Monitor Client
15+
=====================
1816
.. py:module:: sdcclient
1917
.. autoclass:: SdMonitorClient
2018
:members:
2119
:inherited-members:
2220
:undoc-members:
21+
22+
Sysdig Secure Client
23+
====================
24+
.. py:module:: sdcclient
2325
.. autoclass:: SdSecureClient
2426
:members:
2527
:inherited-members:

0 commit comments

Comments
 (0)