From 83c3d3d510c7c2f58651272c024a797d979f5fcd Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 8 Jul 2014 08:32:36 +0200 Subject: [PATCH] use bootswatch theme for better mobile viewing --- doc/conf.py | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index b924764..d4abeda 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -11,7 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os, breathe +import sys, os, breathe, sphinx_bootstrap_theme from sphinxcontrib.doxylink import doxylink os.system("make doc -C npa") @@ -102,15 +102,37 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'nature' +html_theme = 'bootstrap' # 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 = { + # A list of tuples containing pages or urls to link to. + # Valid tuples should be in the following forms: + # (name, page) # a link to a page + # (name, "/aa/bb", 1) # a link to an arbitrary relative url + # (name, "http://example.com", True) # arbitrary absolute url + # Note the "1" or "True" value above as the third argument to indicate + # an arbitrary url. + #'navbar_links': [ + #("Examples", "examples"), + #("Link", "http://example.com", True), + #], + + # Bootswatch (http://bootswatch.com/) theme. + # + # Options are nothing with "" (default) or the name of a valid theme + # such as "amelia" or "cosmo". + 'bootswatch_theme': "flatly", + + # Fix navigation bar to top of page? + # Values: "true" (default) or "false" + 'navbar_fixed_top': "false", +} # Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] +html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". @@ -121,7 +143,7 @@ html_theme = 'nature' # The name of an image file (relative to this directory) to place at the top # of the sidebar. -html_logo = "vscard-logo_128.png" +#html_logo = "vscard-logo_128.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