From 7a0f65b38e471a69f2f7d900758260ed1f242d5f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 13 Dec 2012 18:07:51 -0500 Subject: 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 --- doc/_static/kerb.css | 2 +- doc/_templates/layout.html | 2 +- doc/conf.py | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/_static/kerb.css b/doc/_static/kerb.css index eb93bc48a8..1eeebb71dc 100644 --- a/doc/_static/kerb.css +++ b/doc/_static/kerb.css @@ -24,7 +24,7 @@ div.header, div.content, div.footer { div.header-wrapper { background: white; border-bottom: 3px solid #2e3436; - border-top: 13px solid #59121e; + border-top: 13px solid #5d1509; } /* Header */ diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index e517be51fd..7bfdec6909 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -39,7 +39,7 @@ {% endif %} {% block headertitle %}

{{ shorttitle|e }}

{% endblock %}
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 -- cgit