Skip to content

docs: Enhanced documentation #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = python-sdc-client
SPHINXPROJ = sysdig-sdk-python
SOURCEDIR = .
BUILDDIR = _build

Expand Down
35 changes: 30 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.napoleon']

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

# General information about the project.
project = u'python-sdc-client'
project = u'Sysdig SDK for Python'
copyright = u'2016, Sysdig Inc.'
author = u'Sysdig Inc.'

Expand Down Expand Up @@ -81,13 +81,23 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'classic'
html_theme = 'sphinx_material'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'nav_title': 'Sysdig SDK for Python',
'base_url': 'https://sysdiglabs.github.io/sysdig-sdk-python',
'color_primary': 'blue',
'color_accent': 'light-blue',
'repo_url': 'https://github.com/sysdiglabs/sysdig-sdk-python/',
'repo_name': 'Sysdig SDK for Python',
'globaltoc_depth': 3,
'globaltoc_collapse': False,
'globaltoc_includehidden': False,
}

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

if domain != 'py' or not info['module']:
return None

# tag = 'master' if 'dev' in release else ('v' + release)
url = "https://github.com/draios/python-sdc-client/blob/master/sdcclient/_client.py"
url = "https://github.com/sysdiglabs/sysdig-sdk-python/blob/master/sdcclient/_client.py"
try:
return url + '#L%d' % find_line()
except Exception:
return url


# Napoleon settings
napoleon_google_docstring = True
napoleon_include_init_with_doc = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
napoleon_type_aliases = None
14 changes: 8 additions & 6 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Sysdig Cloud Python Script Library
Sysdig SDK for Python
==================================

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/>`_.
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/>`_.

* :ref:`genindex`
* :ref:`search`



Function List
=============
Sysdig Monitor Client
=====================
.. py:module:: sdcclient
.. autoclass:: SdMonitorClient
:members:
:inherited-members:
:undoc-members:

Sysdig Secure Client
====================
.. py:module:: sdcclient
.. autoclass:: SdSecureClient
:members:
:inherited-members:
Expand Down
Loading