Переглянути джерело

Merge pull request #434 from ThomasWaldmann/rtd-improvements

rtd docs: color and logo improvements
TW 9 роки тому
батько
коміт
3c121c207a
3 змінених файлів з 22 додано та 3 видалено
  1. BIN
      docs/_static/logo.png
  2. 18 0
      docs/borg_theme/css/borg.css
  3. 4 3
      docs/conf.py

BIN
docs/_static/logo.png


+ 18 - 0
docs/borg_theme/css/borg.css

@@ -0,0 +1,18 @@
+@import url("theme.css");
+
+/*  The Return of the Borg.
+ *
+ *  Have a bit green and grey and darkness (and if only in the upper left corner).
+ */
+
+.wy-side-nav-search {
+    background-color: black;
+}
+
+.wy-side-nav-search > a {
+    color: rgba(255, 255, 255, 0.5);
+}
+
+.wy-side-nav-search > div.version {
+    color: rgba(255, 255, 255, 0.5);
+}

+ 4 - 3
docs/conf.py

@@ -106,7 +106,7 @@ if not on_rtd:  # only import and set the theme if we're building docs locally
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
-html_theme_path = ['_themes']
+#html_theme_path = ['_themes']
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
@@ -117,7 +117,7 @@ html_theme_path = ['_themes']
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
-html_logo = '_static/favicon.ico'
+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
@@ -127,7 +127,8 @@ html_favicon = '_static/favicon.ico'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-#html_static_path = ['_static']
+html_static_path = ['borg_theme']
+html_style = 'css/borg.css'
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.