Skip to content

Commit 26da918

Browse files
committed
Update sphinx configuration
1 parent 458d3e0 commit 26da918

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

docs/conf.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,19 @@
1212
# -- Project information -----------------------------------------------------
1313

1414
project = "cxxheaderparser"
15-
copyright = "2020-2021, Dustin Spicuzza"
15+
copyright = "2020-2023, Dustin Spicuzza"
1616
author = "Dustin Spicuzza"
1717

1818
# The full version, including alpha/beta/rc tags
1919
release = pkg_resources.get_distribution("cxxheaderparser").version
2020

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-
2621

2722
# -- General configuration ---------------------------------------------------
2823

2924
# Add any Sphinx extension module names here, as strings. They can be
3025
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3126
# ones.
32-
extensions = [
33-
"sphinx.ext.autodoc",
34-
"sphinx_autodoc_typehints",
35-
]
27+
extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints", "sphinx_rtd_theme"]
3628

3729
# Add any paths that contain templates here, relative to this directory.
3830
templates_path = ["_templates"]
@@ -47,13 +39,7 @@
4739

4840
# The theme to use for HTML and HTML Help pages. See the documentation for
4941
# 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
5342

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"
5844

5945
always_document_param_types = True

0 commit comments

Comments
 (0)