|
30 | 30 | # Add any Sphinx extension module names here, as strings. They can be
|
31 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 32 | # ones.
|
33 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode'] |
| 33 | +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.napoleon'] |
34 | 34 |
|
35 | 35 | # Add any paths that contain templates here, relative to this directory.
|
36 | 36 | templates_path = ['_templates']
|
|
45 | 45 | master_doc = 'index'
|
46 | 46 |
|
47 | 47 | # General information about the project.
|
48 |
| -project = u'python-sdc-client' |
| 48 | +project = u'Sysdig SDK for Python' |
49 | 49 | copyright = u'2016, Sysdig Inc.'
|
50 | 50 | author = u'Sysdig Inc.'
|
51 | 51 |
|
|
81 | 81 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
82 | 82 | # a list of builtin themes.
|
83 | 83 | #
|
84 |
| -html_theme = 'classic' |
| 84 | +html_theme = 'sphinx_material' |
85 | 85 |
|
86 | 86 | # Theme options are theme-specific and customize the look and feel of a theme
|
87 | 87 | # further. For a list of options available for each theme, see the
|
88 | 88 | # documentation.
|
89 | 89 | #
|
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 | +} |
91 | 101 |
|
92 | 102 | # Add any paths that contain custom static files (such as style sheets) here,
|
93 | 103 | # relative to this directory. They are copied after the builtin static files,
|
@@ -159,9 +169,24 @@ def find_line():
|
159 | 169 |
|
160 | 170 | if domain != 'py' or not info['module']:
|
161 | 171 | return None
|
| 172 | + |
162 | 173 | # 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" |
164 | 175 | try:
|
165 | 176 | return url + '#L%d' % find_line()
|
166 | 177 | except Exception:
|
167 | 178 | 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 |
0 commit comments