From 2471b53154ac8e651d01b3ab283d2c161058a889 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Thu, 6 Jul 2017 21:59:03 +0200 Subject: [PATCH] New documentation theme --- docs | 2 +- sphinx/_templates/layout.html | 16 ++++++++++++++++ sphinx/conf.py | 13 +++++++++---- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 sphinx/_templates/layout.html diff --git a/docs b/docs index 278a1a1..a53b089 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 278a1a14a5df686eed396b15a0c8e73c13f1e00f +Subproject commit a53b0896b2212279b8bb3fa890a3711911548555 diff --git a/sphinx/_templates/layout.html b/sphinx/_templates/layout.html new file mode 100644 index 0000000..1b844dc --- /dev/null +++ b/sphinx/_templates/layout.html @@ -0,0 +1,16 @@ +{% extends "!layout.html" %} + +{% block footer %} +{{ super() }} + + +{% endblock %} \ No newline at end of file diff --git a/sphinx/conf.py b/sphinx/conf.py index c219a6e..5fe3209 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- - +import sphinx_bootstrap_theme from recommonmark.parser import CommonMarkParser # -- General configuration ------------------------------------------------ @@ -18,7 +18,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon'] # Add any paths that contain templates here, relative to this directory. -templates_path = [] +templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: @@ -71,13 +71,18 @@ todo_include_todos = True # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'classic' +html_theme = 'bootstrap' +html_theme_path = sphinx_bootstrap_theme.get_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 # documentation. # -# html_theme_options = {} +html_theme_options = { +'navbar_links': [ + ("Lighthacking Blog", "http://lighthacking.nl", True), + ], +} # 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,