|
18 | 18 | # |
19 | 19 | import os |
20 | 20 | import sys |
| 21 | +from datetime import datetime |
21 | 22 |
|
22 | 23 | sys.path.insert(0, os.path.abspath('..')) |
23 | 24 |
|
|
32 | 33 | # ones. |
33 | 34 | extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosectionlabel', 'sphinx.ext.graphviz', |
34 | 35 | 'sphinx.ext.inheritance_diagram', 'sphinx.ext.viewcode', 'sphinx.ext.autosummary', |
35 | | - 'sphinx.ext.githubpages', 'sphinx.ext.napoleon'] |
| 36 | + 'sphinx.ext.githubpages', 'sphinx.ext.napoleon', 'sphinx_rtd_theme'] |
36 | 37 |
|
37 | 38 | # Add any paths that contain templates here, relative to this directory. |
38 | 39 | templates_path = ['_templates'] |
|
48 | 49 |
|
49 | 50 | # General information about the project. |
50 | 51 | project = u'Sysdig SDK for Python' |
51 | | -copyright = u'2016, Sysdig Inc.' |
| 52 | +copyright = f'2016-{datetime.now().year}, Sysdig Inc.' |
52 | 53 | author = u'Sysdig Inc.' |
53 | 54 |
|
54 | 55 | # The version info for the project you're documenting, acts as replacement for |
|
83 | 84 | # The theme to use for HTML and HTML Help pages. See the documentation for |
84 | 85 | # a list of builtin themes. |
85 | 86 | # |
86 | | -html_theme = 'sphinx_material' |
| 87 | +html_theme = 'sphinx_rtd_theme' |
87 | 88 |
|
88 | 89 | # Theme options are theme-specific and customize the look and feel of a theme |
89 | 90 | # further. For a list of options available for each theme, see the |
90 | 91 | # documentation. |
91 | 92 | # |
92 | | -html_theme_options = { |
93 | | - 'nav_title': 'Sysdig SDK for Python', |
94 | | - 'base_url': 'https://sysdiglabs.github.io/sysdig-sdk-python', |
95 | | - 'color_primary': 'blue', |
96 | | - 'color_accent': 'light-blue', |
97 | | - 'repo_url': 'https://github.com/sysdiglabs/sysdig-sdk-python/', |
98 | | - 'repo_name': 'Sysdig SDK for Python', |
99 | | - 'globaltoc_depth': 3, |
100 | | - 'globaltoc_collapse': False, |
101 | | - 'globaltoc_includehidden': False, |
102 | | -} |
| 93 | +html_theme_options = {} |
103 | 94 |
|
104 | 95 | # Add any paths that contain custom static files (such as style sheets) here, |
105 | 96 | # relative to this directory. They are copied after the builtin static files, |
|
0 commit comments