Commits

coady committed 21e736b

Custom documentation theme with logo.

Comments (0)

Files changed (4)

 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'nature'
+html_theme = '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
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
+html_theme_path = ['.']
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".

docs/theme/static/logo.png

Added
New image

docs/theme/static/theme.css_t

+@import url("nature.css");
+
+div.related {
+    background-color: #5E84BB;
+    background-image: url('logo.png');
+    background-repeat: no-repeat;
+    line-height: 64px;
+}
+
+div.related a {
+    color: #fff;
+}
+
+div.related ul {
+    padding-left: 96px;
+}

docs/theme/theme.conf

+[theme]
+inherit = nature
+stylesheet = theme.css