|
12 | 12 | # |
13 | 13 | # import os |
14 | 14 | # import sys |
15 | | -# sys.path.insert(0, os.path.abspath('.')) |
| 15 | +# sys.path.insert(0, os.path.abspath('../')) |
16 | 16 |
|
| 17 | +import sphinx_rtd_theme |
17 | 18 |
|
18 | 19 | # -- Project information ----------------------------------------------------- |
19 | 20 |
|
20 | 21 | project = 'pytorch-optimizers' |
21 | | -copyright = '2021, kozistr' |
| 22 | +copyright = '2023, kozistr' |
22 | 23 | author = 'kozistr' |
23 | 24 |
|
24 | 25 | # The full version, including alpha/beta/rc tags |
25 | | -release = '0.0.6' |
| 26 | +release = '2.1.0' |
26 | 27 |
|
27 | 28 |
|
28 | 29 | # -- General configuration --------------------------------------------------- |
|
31 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
32 | 33 | # ones. |
33 | 34 | extensions = [ |
| 35 | + 'sphinx_rtd_theme', |
| 36 | + 'sphinx.ext.autodoc', |
| 37 | + 'sphinx.ext.napoleon', |
| 38 | + 'sphinx.ext.doctest', |
| 39 | + 'sphinx.ext.todo', |
| 40 | + 'sphinx.ext.coverage', |
| 41 | + 'sphinx.ext.mathjax', |
| 42 | + 'sphinx.ext.ifconfig', |
| 43 | + 'sphinx.ext.viewcode', |
| 44 | + 'sphinx.ext.intersphinx', |
34 | 45 | ] |
35 | 46 |
|
36 | 47 | # Add any paths that contain templates here, relative to this directory. |
|
47 | 58 | # The theme to use for HTML and HTML Help pages. See the documentation for |
48 | 59 | # a list of builtin themes. |
49 | 60 | # |
50 | | -html_theme = 'alabaster' |
| 61 | +html_theme = 'sphinx_rtd_theme' |
51 | 62 |
|
52 | 63 | # Add any paths that contain custom static files (such as style sheets) here, |
53 | 64 | # relative to this directory. They are copied after the builtin static files, |
54 | 65 | # so a file named "default.css" will overwrite the builtin "default.css". |
55 | 66 | html_static_path = ['_static'] |
| 67 | + |
| 68 | +html_theme_options = { |
| 69 | + 'analytics_anonymize_ip': False, |
| 70 | + 'logo_only': False, |
| 71 | + 'display_version': True, |
| 72 | + 'prev_next_buttons_location': 'bottom', |
| 73 | + 'style_external_links': False, |
| 74 | + 'vcs_pageview_mode': '', |
| 75 | + 'style_nav_header_background': 'white', |
| 76 | + # Toc options |
| 77 | + 'collapse_navigation': True, |
| 78 | + 'sticky_navigation': True, |
| 79 | + 'navigation_depth': 4, |
| 80 | + 'includehidden': True, |
| 81 | + 'titles_only': False, |
| 82 | +} |
0 commit comments