Skip to content

Commit

Permalink
Adds logo to docs (zarr-developers#462)
Browse files Browse the repository at this point in the history
* Adds logo + custom css to docs

* Adds sphinx-rtd-theme to requirements
  • Loading branch information
jrbourbeau authored and jakirkham committed Oct 24, 2019
1 parent 29cf195 commit 6536250
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
32 changes: 32 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -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;
}
Binary file added docs/_static/logo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@

# 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 = []
Expand All @@ -142,7 +142,11 @@

# 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
Expand Down
1 change: 1 addition & 0 deletions requirements_rtfd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ setuptools
setuptools_scm
sphinx
sphinx-issues
sphinx-rtd-theme
numpydoc
numpy

0 comments on commit 6536250

Please sign in to comment.