|
58 | 58 | 'sphinx.ext.viewcode', |
59 | 59 | 'numpydoc', |
60 | 60 | 'sphinx_git', |
61 | | - 'sphinx_sitemap', |
62 | 61 | 'myst_parser', |
| 62 | + 'sphinx_immaterial', |
63 | 63 | ] |
64 | 64 | autosummary_generate = True |
65 | 65 | numpydoc_show_class_members = False |
|
98 | 98 | # The theme to use for HTML and HTML Help pages. See the documentation for |
99 | 99 | # a list of builtin themes. |
100 | 100 | # |
101 | | -html_theme = 'sphinx_material' |
| 101 | +html_theme = 'sphinx_immaterial' |
102 | 102 |
|
103 | 103 | # Add any paths that contain custom static files (such as style sheets) here, |
104 | 104 | # relative to this directory. They are copied after the builtin static files, |
|
118 | 118 | # Material theme options (see theme.conf for more information) |
119 | 119 | html_theme_options = { |
120 | 120 |
|
121 | | - # Set the name of the project to appear in the navigation. |
122 | | - 'nav_title': 'ElectricPy', |
123 | | - |
124 | 121 | # Specify a base_url used to generate sitemap.xml. If not |
125 | 122 | # specified, then no sitemap will be built. |
126 | | - 'base_url': 'https://electricpy.readthedocs.io/en/latest/', |
| 123 | + 'site_url': 'https://electricpy.readthedocs.io/en/latest/', |
127 | 124 |
|
128 | 125 | # Set the color and the accent color |
129 | | - 'color_primary': 'blue', |
130 | | - 'color_accent': 'light-blue', |
| 126 | + "palette": [ |
| 127 | + { |
| 128 | + "primary": "light-blue", |
| 129 | + "accent": "blue", |
| 130 | + "media": "(prefers-color-scheme: light)", |
| 131 | + "scheme": "default", |
| 132 | + "toggle": { |
| 133 | + "icon": "material/toggle-switch-off-outline", |
| 134 | + "name": "Switch to dark mode", |
| 135 | + } |
| 136 | + }, |
| 137 | + { |
| 138 | + "primary": "blue", |
| 139 | + "accent": "light-blue", |
| 140 | + "media": "(prefers-color-scheme: dark)", |
| 141 | + "scheme": "slate", |
| 142 | + "toggle": { |
| 143 | + "icon": "material/toggle-switch", |
| 144 | + "name": "Switch to light mode", |
| 145 | + } |
| 146 | + }, |
| 147 | + ], |
131 | 148 |
|
132 | 149 | # Set the repo location to get a badge with stats |
133 | 150 | 'repo_url': 'https://github.com/engineerjoe440/ElectricPy/', |
134 | 151 | 'repo_name': 'ElectricPy', |
135 | 152 |
|
136 | | - # Set the leading text at the top of the index page and others |
137 | | - "heroes": { |
138 | | - "index": "<b><i>Electrical Engineering for Python</i></b>", |
139 | | - "electricpyapi": "Python functions and constants related to electrical engineering.", |
| 153 | + "icon": { |
| 154 | + "repo": "fontawesome/brands/github", |
| 155 | + "logo": "material/library", |
140 | 156 | }, |
141 | | - |
142 | | - # Visible levels of the global TOC; -1 means unlimited |
143 | | - 'globaltoc_depth': 2, |
144 | | - # If False, expand all TOC entries |
145 | | - 'globaltoc_collapse': False, |
146 | | - # If True, show hidden TOC entries |
147 | | - 'globaltoc_includehidden': False, |
148 | 157 | } |
0 commit comments