diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 0000000000..9ad0555b95 --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,32 @@ + +/* Sidebar background color */ +.wy-nav-side, div.wy-side-nav-search { + background-color: rgb(38, 34, 98); +} + +/* Sidebar link click color */ +.wy-menu-vertical .toctree-l1 > a:active { + background-color: rgb(38, 34, 98); + color: rgb(252, 252, 252); +} + +/* Link color is darker to make hovering more clear */ +.wy-menu-vertical .toctree-l1 > a:hover { + background-color: rgb(25, 22, 65); + color: rgb(252, 252, 252); +} + +.wy-menu-vertical li.current > a:hover, .wy-menu-vertical li.current > a:active { + color: #404040; + background-color: #F5F5F5; +} + +/* On hover over logo */ +.wy-side-nav-search > a:hover, .wy-side-nav-search .wy-dropdown > a:hover { + background: inherit; +} + +/* Border around search box */ +.wy-side-nav-search input[type="text"] { + border: 0px; +} diff --git a/docs/_static/logo1.png b/docs/_static/logo1.png new file mode 100644 index 0000000000..4d18ca6739 Binary files /dev/null and b/docs/_static/logo1.png differ diff --git a/docs/conf.py b/docs/conf.py index 9c128f4c9c..54101554ef 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -141,12 +141,12 @@ def __getattr__(cls, name): # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +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 # documentation. -#html_theme_options = {} +html_theme_options = {'logo_only': True} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] @@ -160,7 +160,11 @@ def __getattr__(cls, name): # The name of an image file (relative to this directory) to place at the top # of the sidebar. -#html_logo = None +html_logo = '_static/logo1.png' + +# Add custom css +def setup(app): + app.add_stylesheet('custom.css') # The name of an image file (relative to this directory) to use as a favicon of # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 diff --git a/requirements_rtfd.txt b/requirements_rtfd.txt index 9381263874..af23babef5 100644 --- a/requirements_rtfd.txt +++ b/requirements_rtfd.txt @@ -3,6 +3,7 @@ setuptools setuptools_scm sphinx sphinx-issues +sphinx-rtd-theme numpydoc mock numpy