commit:     6115f4707e2c7b07d418ae2dd3e2673f326c25e5
Author:     Markus Meier <maekke <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 29 19:26:13 2014 +0000
Commit:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Sun Jun 29 19:26:13 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=6115f470

use bootstrap layout from infra-status.g.o

---
 devbook.xsl | 159 ++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 95 insertions(+), 64 deletions(-)

diff --git a/devbook.xsl b/devbook.xsl
index 0548c22..175aa45 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -419,66 +419,97 @@
   <xsl:template match="/">
     <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml";>
     <head>
-        <title>Gentoo Development Guide: <xsl:value-of 
select="/guide/chapter[1]/title"/></title>
-        <xsl:variable name="relative_path_depth" 
select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , 
''))"/>
-        <xsl:variable name="relative_path_depth_recursion">
-          <xsl:call-template name="str:repeatString">
-            <xsl:with-param name="count" select="$relative_path_depth"/>
-            <xsl:with-param name="append">../</xsl:with-param>
-          </xsl:call-template>
-        </xsl:variable>        
-        <link rel="stylesheet" 
href="{$relative_path_depth_recursion}devmanual.css" type="text/css" />
+      <title>Gentoo Development Guide: <xsl:value-of 
select="/guide/chapter[1]/title"/></title>
+      <xsl:variable name="relative_path_depth" 
select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , 
''))"/>
+      <xsl:variable name="relative_path_depth_recursion">
+        <xsl:call-template name="str:repeatString">
+          <xsl:with-param name="count" select="$relative_path_depth"/>
+          <xsl:with-param name="append">../</xsl:with-param>
+        </xsl:call-template>
+      </xsl:variable>
+      <link rel="stylesheet" 
href="{$relative_path_depth_recursion}devmanual.css" type="text/css" />
+      <meta charset="utf-8" />
+      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+      <meta name="description" content="Gentoo Infrastructure Status provides 
information on the status of the services the Gentoo Linux distribution offers 
to its developers and users." />
+      <link 
href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.css";
 rel="stylesheet" media="screen" />
+      <link 
href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/tyrian.min.css";
 rel="stylesheet" media="screen" />
+      <link rel="icon" href="http://www.gentoo.org/favicon.ico"; 
type="image/x-icon" />
     </head>
     <body>
-      <div class="main">
-       <h1>Gentoo Development Guide</h1>
-       <div class="navtop" style="text-align: center;">
-         <table style="border-top: 1px dashed #330066; margin-left: auto; 
margin-right: auto;
-                       width: 100%;">
-
-           <col width="33%" />
-           <col width="34%" />
-           <col width="33%" />
-           <tr>
-             <td style="text-align: center; border-right: 1px dashed 
#330066;">&#x2190; <xsl:call-template name="findPrevious"/></td>
-             <td style="text-align: center;">&#x2191; <xsl:call-template 
name="findParent"/> &#x2191;</td>
-             <td style="text-align: center; border-left: 1px dashed 
#330066;"><xsl:call-template name="findNext"/> &#x2192;</td>
-           </tr>
-         </table>
-       </div>
-
-       <div class="document">
-         <xsl:apply-templates/>
-       </div>
-
-       <div class="navbottom" style="text-align: center;">
-         <table style="border-top: 1px dashed #330066; margin-left: auto; 
margin-right: auto;
-                       width: 100%;">
-
-           <col width="33%" />
-           <col width="34%" />
-           <col width="33%" />
-           <tr>
-             <td style="text-align: center; border-right: 1px dashed 
#330066;">&#x2190; <xsl:call-template name="findPrevious"/></td>
-             <td style="text-align: center;">&#x2191; <xsl:call-template 
name="findParent"/> &#x2191;</td>
-             <td style="text-align: center; border-left: 1px dashed 
#330066;"><xsl:call-template name="findNext"/> &#x2192;</td>
-           </tr>
-         </table>
-       </div>
-      </div>
-
-      <div class="footer">
-       <p>
-           <a href="http://validator.w3.org/check/referer";><img 
src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a>
-           <a href="http://jigsaw.w3.org/css-validator/check/referer";><img 
src="/icons/icon_mini-css.png" alt="Valid CSS" /></a>
-           <a href="http://www.gentoo.org/";><img 
src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a>
-           <a href="http://creativecommons.org/licenses/by-sa/2.0/";><img 
src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a>
-           <img src="/icons/icon_mini-xml.png" alt="XML Powered!"/>
-         <br />
-         <br />
-         The text of this document is distributed under the <a 
href="http://creativecommons.org/licenses/by-sa/2.0/";>Creative Commons 
Attribution-ShareAlike 2.0 License</a>.
-       </p>
+      <header>
+        <div class="site-title">
+          <div class="container">
+            <div class="row">
+              <div class="site-title-buttons">
+                <div class="btn-group btn-group-sm">
+                  <a href="http://get.gentoo.org/"; type="button" class="btn 
get-gentoo"><span class="fa fa-download"></span> <strong>Get 
Gentoo!</strong></a>
+                  <div class="btn-group btn-group-sm">
+                    <button type="button" class="gentoo-org-sites btn" 
data-toggle="dropdown">
+                      <span class="glyphicon glyphicon-globe"></span> 
gentoo.org sites <span class="caret"></span>
+                    </button>
+                    <ul class="dropdown-menu">
+                      <li><a href="http://www.gentoo.org/"; title="Main Gentoo 
website"><span class="fa fa-home fa-fw"></span> gentoo.org</a></li>
+                      <li><a href="http://wiki.gentoo.org/"; title="Find and 
contribute documentation"><span class="fa fa-file-text fa-fw"></span> 
Wiki</a></li>
+                      <li><a href="https://bugs.gentoo.org/"; title="Report 
issues and find common issues"><span class="fa fa-bug fa-fw"></span> 
Bugs</a></li>
+                      <li><a href="http://forums.gentoo.org/"; title="Discuss 
with the community"><span class="fa fa-comments-o fa-fw"></span> Forums</a></li>
+                      <li><a href="http://packages.gentoo.org/"; title="Find 
software for your Gentoo"><span class="fa fa-hdd-o fa-fw"></span> 
Packages</a></li>
+                      <li class="divider"></li>
+                      <li><a href="http://overlays.gentoo.org/"; 
title="Collaborate on maintaining packages"><span class="fa fa-code-fork 
fa-fw"></span> Overlays</a></li>
+                      <li><a href="http://planet.gentoo.org/"; title="Find out 
what's going on in the developer community"><span class="fa fa-rss 
fa-fw"></span> Planet</a></li>
+                      <li><a href="http://archives.gentoo.org/"; title="Read up 
on past discussions"><span class="fa fa-archive fa-fw"></span> Archives</a></li>
+                      <li><a href="http://sources.gentoo.org/"; title="Browse 
our source code"><span class="fa fa-code fa-fw"></span> Sources</a></li>
+                      <li class="divider"></li>
+                      <li><a href="http://infra-status.gentoo.org/"; title="Get 
updates on the services provided by Gentoo"><span class="fa fa-tasks 
fa-fw"></span> Infra Status</a></li>
+                    </ul>
+                  </div>
+                </div>
+              </div>
+              <div class="logo">
+                <img 
src="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/site-logo.png";
 alt="Gentoo Linux Logo"/>
+                <span class="site-label">Gentoo Development Guide</span>
+              </div>
+            </div>
+          </div>
+        </div>
+        <nav class="tyrian-navbar" role="navigation">
+          <div class="container">
+            <div class="row">
+              <div class="navbar-header">
+                <button type="button" class="navbar-toggle" 
data-toggle="collapse" data-target=".navbar-main-collapse">
+                  <span class="sr-only">Toggle navigation</span>
+                  <span class="icon-bar"></span>
+                  <span class="icon-bar"></span>
+                  <span class="icon-bar"></span>
+                </button>
+              </div>
+              <div class="collapse navbar-collapse navbar-main-collapse">
+                <ul class="nav navbar-nav">
+                  <li><xsl:call-template name="findPrevious"/></li>
+                  <li><xsl:call-template name="findParent"/></li>
+                  <li><xsl:call-template name="findNext"/></li>
+                </ul>
+              </div>
+            </div>
+          </div>
+        </nav>
+      </header>
+      <div class="container">
+        <xsl:apply-templates/>
       </div>
+      <footer>
+        <div class="container">
+          <div class="row">
+            <div class="col-md-12">
+              <strong>Copyright 2001-2014 Gentoo Foundation, Inc.</strong><br 
/>
+              <small>
+                Gentoo is a trademark of the Gentoo Foundation, Inc.
+                The text of this document is distributed under the <a 
href="http://creativecommons.org/licenses/by-sa/2.0/";>Creative Commons 
Attribution-ShareAlike 2.0 License</a>.
+                The <a href="#">Gentoo Name and Logo Usage Guidelines</a> 
apply.
+              </small>
+            </div>
+          </div>
+        </div>
+      </footer>
     </body>
     </html>
   </xsl:template>
@@ -514,7 +545,7 @@
       -->
       <xsl:when test="count(/guide/include) &gt; 0">
        <xsl:variable name="doc" select="/guide/include[1]/@href"/>
-       <a href="{concat($doc, 'index.html')}"><xsl:value-of 
select="document(concat(/guide/@self, $doc, 
'text.xml'))/guide/chapter[1]/title"/></a>
+       <a href="{concat($doc, 'index.html')}"><xsl:value-of 
select="document(concat(/guide/@self, $doc, 
'text.xml'))/guide/chapter[1]/title"/> &#x2192;</a>
       </xsl:when>
       <xsl:otherwise>
        <!-- This document's path -->
@@ -547,7 +578,7 @@
                 <xsl:with-param name="append">../</xsl:with-param>
              </xsl:call-template>
            </xsl:variable>
-           <a href="{concat($relative_path_depth_recursion, $relative_path, 
'index.html')}"><xsl:value-of select="document(concat($parentItem_actual, 
'text.xml'))/guide/chapter[1]/title"/></a>
+           <a href="{concat($relative_path_depth_recursion, $relative_path, 
'index.html')}"><xsl:value-of select="document(concat($parentItem_actual, 
'text.xml'))/guide/chapter[1]/title"/> &#x2192;</a>
          </xsl:when>
          <xsl:otherwise>
            <!-- We need to recurse downwards; so we need to strip off a 
directory element off our absolute path to feed
@@ -594,7 +625,7 @@
               * Fully recurse up the node to get the last extremity
             * Otherwise list the parent -->
       <xsl:when test="/guide/@root">
-       <a href="#"><xsl:value-of select="/guide/chapter[1]/title"/></a>
+       <a href="#">&#x2190; <xsl:value-of 
select="/guide/chapter[1]/title"/></a>
       </xsl:when>
       <xsl:otherwise>
        <!-- This document's path -->
@@ -617,10 +648,10 @@
            </xsl:call-template>
            </xsl:variable>
            <!-- Make a relative <a> link; we need an absolute reference for 
the XSLT processor though... -->
-           <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 
'index.html')}"><xsl:value-of select="document(concat($parentItem_path, 
$myItem_path))/guide/chapter[1]/title"/></a>
+           <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 
'index.html')}">&#x2190; <xsl:value-of 
select="document(concat($parentItem_path, 
$myItem_path))/guide/chapter[1]/title"/></a>
          </xsl:when>
          <xsl:otherwise>
-           <a href="../index.html"><xsl:value-of 
select="document(concat(/guide/@self, 
'../text.xml'))/guide/chapter[1]/title"/></a>
+           <a href="../index.html">&#x2190; <xsl:value-of 
select="document(concat(/guide/@self, 
'../text.xml'))/guide/chapter[1]/title"/></a>
          </xsl:otherwise>
        </xsl:choose>
       </xsl:otherwise>
@@ -630,10 +661,10 @@
   <xsl:template name="findParent">
     <xsl:choose>
     <xsl:when test="not(/guide/@root)">
-      <a href="../index.html"><xsl:value-of 
select="document(concat(/guide/@self, 
'../text.xml'))/guide/chapter[1]/title"/></a>
+      <a href="../index.html">&#x2191; <xsl:value-of 
select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/> 
&#x2191;</a>
     </xsl:when>
     <xsl:otherwise>
-      <a href="#"><xsl:value-of select="/guide/chapter[1]/title"/></a>
+      <a href="#">&#x2191; <xsl:value-of select="/guide/chapter[1]/title"/> 
&#x2191;</a>
     </xsl:otherwise>
     </xsl:choose>
   </xsl:template>

Reply via email to