Skip to content

Commit

Permalink
More doc tweaks (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Apr 3, 2018
1 parent 95cf6d8 commit 7c2fe22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
13 changes: 13 additions & 0 deletions docs/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@import url("theme.css");

.wy-side-nav-search {
background-color: #9cb7c9;
}

.wy-side-nav-search>div.version {
display: none;
}

.wy-nav-top {
background-color: #9cb7c9;
}
10 changes: 1 addition & 9 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
{% extends "!layout.html" %}
{% block footer %} {{ super() }}

<style>
/* Sidebar header (and topbar for mobile) */
.wy-side-nav-search, .wy-nav-top {
background: #7096b0;
}
</style>
{% endblock %}
{% set css_files = css_files + ["_static/style.css"] %}
10 changes: 1 addition & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from
# docs.readthedocs.org

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
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
Expand Down

0 comments on commit 7c2fe22

Please sign in to comment.