|
12 | 12 | # -- Project information ----------------------------------------------------- |
13 | 13 |
|
14 | 14 | project = "cxxheaderparser" |
15 | | -copyright = "2020-2021, Dustin Spicuzza" |
| 15 | +copyright = "2020-2023, Dustin Spicuzza" |
16 | 16 | author = "Dustin Spicuzza" |
17 | 17 |
|
18 | 18 | # The full version, including alpha/beta/rc tags |
19 | 19 | release = pkg_resources.get_distribution("cxxheaderparser").version |
20 | 20 |
|
21 | | -# -- RTD configuration ------------------------------------------------ |
22 | | - |
23 | | -# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org |
24 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
25 | | - |
26 | 21 |
|
27 | 22 | # -- General configuration --------------------------------------------------- |
28 | 23 |
|
29 | 24 | # Add any Sphinx extension module names here, as strings. They can be |
30 | 25 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
31 | 26 | # ones. |
32 | | -extensions = [ |
33 | | - "sphinx.ext.autodoc", |
34 | | - "sphinx_autodoc_typehints", |
35 | | -] |
| 27 | +extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints", "sphinx_rtd_theme"] |
36 | 28 |
|
37 | 29 | # Add any paths that contain templates here, relative to this directory. |
38 | 30 | templates_path = ["_templates"] |
|
47 | 39 |
|
48 | 40 | # The theme to use for HTML and HTML Help pages. See the documentation for |
49 | 41 | # a list of builtin themes. |
50 | | -# |
51 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
52 | | - import sphinx_rtd_theme |
53 | 42 |
|
54 | | - html_theme = "sphinx_rtd_theme" |
55 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
56 | | -else: |
57 | | - html_theme = "default" |
| 43 | +html_theme = "sphinx_rtd_theme" |
58 | 44 |
|
59 | 45 | always_document_param_types = True |
0 commit comments