Skip to content

Commit

Permalink
Merge pull request #802 from bashtage/disable-rtd-theme
Browse files Browse the repository at this point in the history
DOC: Use pydata theme everywhere
  • Loading branch information
bashtage committed Jul 7, 2020
2 parents ca27c15 + 4bcd19a commit c4bba86
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
25 changes: 5 additions & 20 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,12 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import os

import pandas_datareader as pdr

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


on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if on_rtd:
import sphinx_rtd_theme
else:
import pydata_sphinx_theme # noqa: F401

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -109,16 +99,11 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
if on_rtd:
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
html_theme = "pydata_sphinx_theme"
# html_theme_path = pydata_sphinx_theme.get_html_theme_path()
html_theme_options = {
"external_links": [],
"github_url": "https://github.com/pydata/pandas-datareader",
}
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"external_links": [],
"github_url": "https://github.com/pydata/pandas-datareader",
}

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
1 change: 0 additions & 1 deletion pandas_datareader/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
from pandas_datareader.yahoo.options import Options as YahooOptions
from pandas_datareader.yahoo.quotes import YahooQuotesReader


__all__ = [
"get_components_yahoo",
"get_data_enigma",
Expand Down
3 changes: 2 additions & 1 deletion pandas_datareader/naver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

import numpy as np
from pandas import DataFrame, to_datetime
from pandas_datareader.base import _DailyBaseReader
from six import string_types

from pandas_datareader.base import _DailyBaseReader


class NaverDailyReader(_DailyBaseReader):
"""Fetches daily historical data from Naver Finance.
Expand Down
3 changes: 2 additions & 1 deletion pandas_datareader/tests/test_naver.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from datetime import datetime

from pandas_datareader import DataReader
import pytest

from pandas_datareader import DataReader


class TestNaver(object):
@pytest.mark.parametrize(
Expand Down

0 comments on commit c4bba86

Please sign in to comment.