|
35 | 35 | # ones. |
36 | 36 | extensions = [ |
37 | 37 | "breathe", |
| 38 | + "sphinx_copybutton", |
38 | 39 | "sphinxcontrib.rsvgconverter", |
39 | 40 | "sphinxcontrib.moderncmakedomain", |
40 | 41 | ] |
|
125 | 126 | # The theme to use for HTML and HTML Help pages. See the documentation for |
126 | 127 | # a list of builtin themes. |
127 | 128 |
|
128 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
129 | | - |
130 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
131 | | - import sphinx_rtd_theme |
132 | | - |
133 | | - html_theme = "sphinx_rtd_theme" |
134 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
135 | | - |
136 | | - html_context = {"css_files": ["_static/theme_overrides.css"]} |
137 | | -else: |
138 | | - html_context = { |
139 | | - "css_files": [ |
140 | | - "//media.readthedocs.org/css/sphinx_rtd_theme.css", |
141 | | - "//media.readthedocs.org/css/readthedocs-doc-embed.css", |
142 | | - "_static/theme_overrides.css", |
143 | | - ] |
144 | | - } |
| 129 | +html_theme = "furo" |
145 | 130 |
|
146 | 131 | # Theme options are theme-specific and customize the look and feel of a theme |
147 | 132 | # further. For a list of options available for each theme, see the |
|
170 | 155 | # Add any paths that contain custom static files (such as style sheets) here, |
171 | 156 | # relative to this directory. They are copied after the builtin static files, |
172 | 157 | # so a file named "default.css" will overwrite the builtin "default.css". |
173 | | -html_static_path = ["_static"] |
| 158 | +html_static_path = [] |
174 | 159 |
|
175 | 160 | # Add any extra paths that contain custom files (such as robots.txt or |
176 | 161 | # .htaccess) here, relative to this directory. These files are copied |
|
0 commit comments