diff --git a/docs/source/conf.py b/docs/source/conf.py index 3651eb79..04f749df 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -28,6 +28,9 @@ from recommonmark.parser import CommonMarkParser # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. +import sphinx_rtd_theme + + extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', @@ -119,7 +122,8 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'alabaster' +html_theme = 'sphinx_rtd_theme' + # 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 @@ -127,7 +131,7 @@ html_theme = 'alabaster' #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". diff --git a/setup.py b/setup.py index 3fd8dae4..caef7b69 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ docs_require = [ 'recommonmark>=0.4.0', 'Sphinx>=1.3.5', 'sphinxcontrib-napoleon>=0.4.4', + 'sphinx-rtd-theme>=0.1.9', ] setup(