Skip to content

Commit c4bba86

Browse files
authored
Merge pull request #802 from bashtage/disable-rtd-theme
DOC: Use pydata theme everywhere
2 parents ca27c15 + 4bcd19a commit c4bba86

File tree

4 files changed

+9
-23
lines changed

4 files changed

+9
-23
lines changed

docs/source/conf.py

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,12 @@
1212
#
1313
# All configuration values have a default; values that are commented out
1414
# serve to show the default.
15-
16-
import os
17-
1815
import pandas_datareader as pdr
1916

2017
# Add any Sphinx extension module names here, as strings. They can be
2118
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2219
# ones.
2320

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-
3121
# If extensions (or modules to document with autodoc) are in another directory,
3222
# add these directories to sys.path here. If the directory is relative to the
3323
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -109,16 +99,11 @@
10999

110100
# The theme to use for HTML and HTML Help pages. See the documentation for
111101
# 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+
}
122107

123108
# Theme options are theme-specific and customize the look and feel of a theme
124109
# further. For a list of options available for each theme, see the

pandas_datareader/data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
from pandas_datareader.yahoo.options import Options as YahooOptions
4646
from pandas_datareader.yahoo.quotes import YahooQuotesReader
4747

48-
4948
__all__ = [
5049
"get_components_yahoo",
5150
"get_data_enigma",

pandas_datareader/naver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
import numpy as np
55
from pandas import DataFrame, to_datetime
6-
from pandas_datareader.base import _DailyBaseReader
76
from six import string_types
87

8+
from pandas_datareader.base import _DailyBaseReader
9+
910

1011
class NaverDailyReader(_DailyBaseReader):
1112
"""Fetches daily historical data from Naver Finance.

pandas_datareader/tests/test_naver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from datetime import datetime
22

3-
from pandas_datareader import DataReader
43
import pytest
54

5+
from pandas_datareader import DataReader
6+
67

78
class TestNaver(object):
89
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)