diff options
author | Tom Yu <tlyu@mit.edu> | 2012-12-13 18:07:51 -0500 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-12-14 14:21:00 -0500 |
commit | 7a0f65b38e471a69f2f7d900758260ed1f242d5f (patch) | |
tree | 1949c651f6bb34243ebeb5f1dbe3863c8ff6b72b /doc/conf.py | |
parent | bba7ed92a0b9800d9f5fdb14f5f66f755e9d92fa (diff) | |
download | krb5-7a0f65b38e471a69f2f7d900758260ed1f242d5f.tar.gz krb5-7a0f65b38e471a69f2f7d900758260ed1f242d5f.tar.xz krb5-7a0f65b38e471a69f2f7d900758260ed1f242d5f.zip |
Conditionally include MITKC logo in HTML doc
Conditionally include the MITKC logo in the HTML output from Sphinx if
the environment variable HTML_LOGO is set. During official builds for
the web site, that environment variable will point to an appropriately
scaled copy of the MITKC logo.
Adjust HTML document colors to match logo.
ticket: 7504 (new)
target_version: 1.11
tags: pullup
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py index 44fe812574..266507ce5b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -106,8 +106,8 @@ html_theme = 'agogo' # 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 = { "linkcolor": "#a63019", "footerbg": "#59121e", - "bgcolor": "#59121e", "documentwidth": "80%", +html_theme_options = { "linkcolor": "#881f0d", "footerbg": "#5d1509", + "bgcolor": "#5d1509", "documentwidth": "80%", "pagewidth": "auto", "sidebarwidth": "20%" } # Add any paths that contain custom themes here, relative to this directory. @@ -122,7 +122,8 @@ html_title = "MIT Kerberos Documentation" # The name of an image file (relative to this directory) to place at the top # of the sidebar. -#html_logo = "" +if os.environ.get('HTML_LOGO'): + html_logo = os.environ['HTML_LOGO'] # 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 |