|
12 | 12 | # |
13 | 13 | # All configuration values have a default; values that are commented out |
14 | 14 | # serve to show the default. |
15 | | - |
16 | | -import os |
17 | | - |
18 | 15 | import pandas_datareader as pdr |
19 | 16 |
|
20 | 17 | # Add any Sphinx extension module names here, as strings. They can be |
21 | 18 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
22 | 19 | # ones. |
23 | 20 |
|
24 | | - |
25 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
26 | | -if on_rtd: |
27 | | - import sphinx_rtd_theme |
28 | | -else: |
29 | | - import pydata_sphinx_theme # noqa: F401 |
30 | | - |
31 | 21 | # If extensions (or modules to document with autodoc) are in another directory, |
32 | 22 | # add these directories to sys.path here. If the directory is relative to the |
33 | 23 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
109 | 99 |
|
110 | 100 | # The theme to use for HTML and HTML Help pages. See the documentation for |
111 | 101 | # a list of builtin themes. |
112 | | -if on_rtd: |
113 | | - html_theme = "sphinx_rtd_theme" |
114 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
115 | | -else: |
116 | | - html_theme = "pydata_sphinx_theme" |
117 | | - # html_theme_path = pydata_sphinx_theme.get_html_theme_path() |
118 | | - html_theme_options = { |
119 | | - "external_links": [], |
120 | | - "github_url": "https://github.com/pydata/pandas-datareader", |
121 | | - } |
| 102 | +html_theme = "pydata_sphinx_theme" |
| 103 | +html_theme_options = { |
| 104 | + "external_links": [], |
| 105 | + "github_url": "https://github.com/pydata/pandas-datareader", |
| 106 | +} |
122 | 107 |
|
123 | 108 | # Theme options are theme-specific and customize the look and feel of a theme |
124 | 109 | # further. For a list of options available for each theme, see the |
|
0 commit comments