]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Conditionally include MITKC logo in HTML doc
authorTom Yu <tlyu@mit.edu>
Thu, 13 Dec 2012 23:07:51 +0000 (18:07 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 14 Dec 2012 19:21:00 +0000 (14:21 -0500)
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
doc/_templates/layout.html
doc/conf.py

index eb93bc48a86e6b7eecb750d16d6ed3591bae693f..1eeebb71dcf040cc0998bfe716ebe62f296bfddc 100644 (file)
@@ -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 */
index e517be51fd2a949fba58adfe9d310ed293780575..7bfdec6909fb164b23553468268192e4188b598b 100644 (file)
@@ -39,7 +39,7 @@
             {% endif %}
             {% block headertitle %}
                 <h1><a href="{{ pathto (master_doc) }}"
-                style="color: #59121e; font-size: 120%;
+                style="color: {{ theme_bgcolor }}; font-size: 120%;
                 padding-top: 10px;">{{ shorttitle|e }}</a><h1>
             {% endblock %}
             <div class="rel" style="font-size: 50%; padding-bottom: 0px;" >
index 44fe812574e6af443b9dcd498ce17e84cd0bdd9b..266507ce5bb4db5c55a67336a13b792877b145dd 100644 (file)
@@ -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