Skip to content

Commit

Permalink
docs: more customization
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Apr 6, 2015
1 parent 1daa65e commit 1e725ff
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
Binary file added doc/_static/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body {
font-family: "Maven Pro", Helvetica, sans-serif;
}
a.icon-home {
font-size: 0;
margin-top: 0;
margin-bottom: 20px;
}
h1, h2, h3, h4, h5, h6, legend {
font-family: "Maven Pro", Helvetica, sans-serif;
}
.wy-nav-side {
background-color: black;
color: white;
}
.wy-nav-content {
background-color: white;
}
.wy-nav-content-wrap {
background-color: white;
}
.wy-side-nav-search {
background-color: #f0f0f0;
}
.wy-side-nav-search input[type="text"] {
border-color: #aaa;
}
5 changes: 5 additions & 0 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "!layout.html" %}
{% set css_files = css_files + ['_static/style.css'] %}
{% block extrahead %}
<link href='http://fonts.googleapis.com/css?family=Maven+Pro:400,700' rel='stylesheet' type='text/css'>
{% endblock %}
6 changes: 2 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

# 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
Expand All @@ -104,7 +104,7 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = "logo.png"
html_logo = "_static/logo.png"

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
Expand Down Expand Up @@ -241,10 +241,8 @@
if on_rtd:
sys.path.append("/var/build/user_builds/bundlewrap/checkouts/latest/src")
todo_include_todos = False
html_theme = 'sphinx_rtd_theme'
else:
todo_include_todos = True
html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes"]

from bundlewrap import VERSION, VERSION_STRING
Expand Down
Binary file removed doc/logo.png
Binary file not shown.

0 comments on commit 1e725ff

Please sign in to comment.