a0ce29307032 — Joe Ulfers 5 years ago
Start customizing Sphinx theme
4 files changed, 12 insertions(+), 17 deletions(-)

M style/global.css => _static/default.css
A => _templates/layout.html
M conf.py
A => theme/theme.conf
M style/global.css => _static/default.css +0 -0

A => _templates/layout.html +7 -0
@@ 0,0 1,7 @@ 
+{% extends "basic/layout.html" %}
+
+{# Remove base theme navigation, top and bottom #}
+{% block relbar1 %}{% endblock %}
+{% block relbar2 %}{% endblock %}
+{% block sidebar1 %}{% endblock %}
+{% block sidebar2 %}{% endblock %}

          
M conf.py +2 -17
@@ 82,7 82,8 @@ todo_include_todos = False
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
-html_theme = 'alabaster'
+html_theme = 'theme'
+html_theme_path = ['.']
 
 # 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

          
@@ 95,22 96,6 @@ html_theme = 'alabaster'
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ['_static']
 
-# Custom sidebar templates, must be a dictionary that maps document names
-# to template names.
-#
-# This is required for the alabaster theme
-# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
-html_sidebars = {
-    '**': [
-        'about.html',
-        'navigation.html',
-        'relations.html',  # needs 'show_related': True theme option to display
-        'searchbox.html',
-        'donate.html',
-    ]
-}
-
-
 # -- Options for HTMLHelp output ------------------------------------------
 
 # Output file base name for HTML help builder.

          
A => theme/theme.conf +3 -0
@@ 0,0 1,3 @@ 
+[theme]
+inherit = basic
+stylesheet = default.css
  No newline at end of file