[27400] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Conditionally include MITKC logo in HTML doc

daemon@ATHENA.MIT.EDU (Tom Yu)
Fri Dec 14 15:27:36 2012

Date: Fri, 14 Dec 2012 15:27:33 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201212142027.qBEKRX4h010050@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/7a0f65b38e471a69f2f7d900758260ed1f242d5f
commit 7a0f65b38e471a69f2f7d900758260ed1f242d5f
Author: Tom Yu <tlyu@mit.edu>
Date:   Thu Dec 13 18:07:51 2012 -0500

    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 eb93bc4..1eeebb7 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 e517be5..7bfdec6 100644
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -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;" >
diff --git a/doc/conf.py b/doc/conf.py
index 44fe812..266507c 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
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post