Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made a number of tweaks to the layout of the book and also got the bo…

…ok read for the optimizely tests
  • Loading branch information...
commit fb115719239f52186cd1da7540e726ee54fe0f07 1 parent c2296b6
Tim O'Brien tobrien authored
15 book-mvnex-docinfo.xml
View
@@ -2,12 +2,6 @@
<edition>0.7</edition>
- <editor>
- <firstname>Tim</firstname>
-
- <surname>O'Brien</surname>
- </editor>
-
<authorgroup role="Primary Authors">
<author>
<firstname>Tim</firstname>
@@ -47,9 +41,6 @@
<surname>Locher</surname>
</author>
- </authorgroup>
-
- <authorgroup role="Contributing Authors">
<author>
<firstname>Dan</firstname>
@@ -63,12 +54,6 @@
</author>
<author>
- <firstname>Larry</firstname>
-
- <surname>Shatzer</surname>
- </author>
-
- <author>
<firstname>Bruce</firstname>
<surname>Snyder</surname>
26 docbook-xsl/custom-chunked.xsl
View
@@ -70,19 +70,35 @@
procedure before
</xsl:param>
<xsl:template match="author" mode="titlepage.mode">
- <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
- <xsl:text>, </xsl:text>
- </xsl:if>
<span class="{name(.)}">
<xsl:call-template name="person.name"/>
- (<xsl:value-of select="affiliation"/>)
<xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
</span>
</xsl:template>
<xsl:template match="authorgroup" mode="titlepage.mode">
+ <div class="toc_intro">
+ <p>As developers, we understand that you don't want to spend
+ years reading documentation about your build tool. We get
+ it. You just want to get to work. On the other hand, if you
+ don't take a little bit of time to understand what Maven can
+ do and what it was designed for, there's a good possibility
+ you'll be needlessly reinventing wheels. Take an hour or
+ two and walk through Maven by Example, it's a gentle
+ introduction to Maven and we promise it will save you time.
+ Sonatype maintains two books focused on Maven: an
+ example-driven introduction to Maven, <a
+ href="http://www.sonatype.com/books/mvnex-book/reference/public-book.html">"Maven
+ by Example"</a> and <a
+ href="http://www.sonatype.com/books/mvnref-book/reference/public-book.html">Maven:
+ The Complete Reference</a>. If you already understand how
+ to use Maven and are just looking for a reference, <a
+ href="http://www.sonatype.com/books/mvnref-book/reference/public-book.html">go
+ read the other book</a>.
+
+</p>
+ </div>
<div class="{name(.)}">
<h2>Authors</h2>
- <p/>
<xsl:apply-templates mode="titlepage.mode"/>
</div>
</xsl:template>
132 site/book-template.html
View
@@ -1,25 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
- <head>
-<!-- Links : Start --> <title>${title} / Documentation Sonatype.com</title>
-
+ <head>
+<script src="//cdn.optimizely.com/js/25986281.js"></script>
+
+<!-- Links : Start --> <title> ${title} / Documentation Sonatype.com</title>
+
<meta name="Content-Type" content="text/html; charset=utf-8" /> <meta name="Content-language" content="en-US" /> <meta name="author" content="Sonatype, Inc." />
<meta name="copyright" content="Sonatype, Inc." />
- <meta name="description" content="Sonatype provides the most widely used tools in Java development, including: Maven, Nexus, Hudson, m2eclipse, and Maven Central." />
+ <meta name="description" content="Build better software faster with open source components. OSS management solutions to reduce quality, security and licensing risk. Professional development infrastructure for the Apache Maven build system, Nexus repository manager, Hudson CI server, and plug-ins for Eclipse. Sonatype is the steward of the Central Repository." />
<meta name="keywords" content="" />
- <meta name="MSSmartTagsPreventParsing" content="TRUE" /><!-- Links : End -->
+ <meta name="MSSmartTagsPreventParsing" content="TRUE" /><meta name="google-site-verification" content="XTaojIhRJkN8Zx7Qhnbss_-teil0HPcPt88gLs6wDnE" /><!-- Links : End -->
<!-- Load Stylesheets -->
-<link rel="stylesheet" type="text/css" href="/var/ezflow_site/cache/public/stylesheets/6448fb4a1e092dc20997b2211c085806_all.css" />
+<link rel="stylesheet" type="text/css" href="/var/ezflow_site/cache/public/stylesheets/226733c52e74d612578b6b597b6f8524_all.css" />
+
+<link rel="stylesheet"
+href="/extension/sonatype/design/sonatype_com/stylesheets/print.css"
+type="text/css" media="print">
+
+<link rel="stylesheet"
+href="css/book.css"
+type="text/css">
+
-<link rel="stylesheet" href="/extension/sonatype/design/sonatype_com/stylesheets/print.css" type="text/css" media="print">
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="/extension/sonatype/design/sonatype_com/stylesheets/browsers/ie-lt8.css" />
<![endif]-->
<!-- Load Javascripts -->
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
-<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
+<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
+<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/superfish-1.4.8/js/hoverintent.js" charset="utf-8"></script>
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/superfish-1.4.8/js/superfish.js" charset="utf-8"></script>
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/jquery.qtip/jquery.qtip-1.0.0-rc3.min.js" charset="utf-8"></script>
@@ -28,12 +38,15 @@
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/zrssfeed/jquery.zrssfeed.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/application.js" charset="utf-8"></script>
+<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
+
<!--
<script type="text/javascript" src="http://use.typekit.com/mlk8aso.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-->
+<meta name="google-site-verification" content="ZCyWdPSAwP3oiI3mQ69AAmnrm5xTeXHXCO35h_9hxTI" />
</head>
- <body>
+ <body class="node_id_595">
<!-- Accessibility Links -->
<div class="hide">
<ul>
@@ -44,12 +57,12 @@
</ul>
</div>
<!-- page : START -->
- <div id="page" class="nosidemenu extrainfo section_id_1 subtree_level_0_node_id_2 subtree_level_1_node_id_84 subtree_level_2_node_id_86">
+ <div id="page" class="nosidemenu extrainfo section_id_1 subtree_level_0_node_id_2 subtree_level_1_node_id_84 subtree_level_2_node_id_86 subtree_level_3_node_id_122 subtree_level_4_node_id_595">
<!-- page_header : START -->
<div id="header">
- <div class="trunk"> <h1 id="logo"><a href="/" title="Sonatype.com Homepage"><span>Sonatype.com | Transforming Software Development</span></a></h1> <a class="off" name="site-search-a"></a>
+ <div class="trunk"> <div id="logo"><a href="/" title="Sonatype.com Homepage"><span>Sonatype.com | Transforming Software Development</span></a></div> <a class="off" name="site-search-a"></a>
<div id="header-search" class="search-box">
<form action="/content/search">
<label for="searchtext" class="hide">Search Site:</label>
@@ -77,51 +90,38 @@
<ul class="nav-main-sf">
<li class="m1"><a href="/Products" class="tab"><span>Products</span></a>
<ul>
- <li><a href="/Products/Sonatype-Insight" class="gm m1-4"><em>Nexus Professional</em></a>
+ <li><a href="/Products/Sonatype-Insight" class="gm m1-1"><em>Sonatype Insight</em></a>
<ul>
- <li><a href="/Products/Sonatype-Insight/Why-Insight">Why Insight</a></li>
- <li><a href="/Products/Sonatype-Insight/Management-Insight">Management Insight</a></li>
- <li><a href="/Products/Sonatype-Insight/Application-Insight">Application Insight</a></li>
- <li><a href="/Products/Sonatype-Insight/Development-Insight">Development Insight</a>
+ <li><a href="/Products/Sonatype-Insight/Why-Insight">Why Insight</a>
<ul>
- <li class="last"><a href="/Products/Sonatype-Insight/Development-Insight/Development-Insight-for-Eclipse">For Eclipse</a></li> </ul></li>
+ <li><a href="/Products/Sonatype-Insight/Why-Insight/Improve-Application-Development">Improve Application Development</a></li>
+ <li><a href="/Products/Sonatype-Insight/Why-Insight/Reduce-Security-Risk">Reduce Security Risks</a></li>
+ <li><a href="/Products/Sonatype-Insight/Why-Insight/Ensure-License-Compliance">Ensure License Compliance</a>
+ <li class="last"><a href="/Products/Sonatype-Insight/Why-Insight/Open-Source-Governance">Open Source Governance</a></li>
+ </ul></li>
+ <li><a href="/Products/Sonatype-Insight/Insight-Application-Check">Insight Application Check</a></li>
+ <li><a href="/Products/Sonatype-Insight/Insight-for-CI">Insight for CI</a></li>
+ <li><a href="/Products/Sonatype-Insight/Insight-for-Nexus">Insight for Nexus</a></li>
<li class="last"><a href="/Request/Information/Sonatype-Insight">Request Information</a></li>
</ul>
</li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus" class="gm m1-2"><em>Nexus Professional</em></a>
+ <li class="last"><a href="/Products/Nexus-Professional" class="gm m1-2"><em>Nexus Professional</em></a>
<ul>
- <li><a href="/Products/Sonatype-Pro-for-Nexus/At-A-Glance">At a Glance</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus/Why-Go-Pro">Why go Pro</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus/Features-Overview">Features Overview</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus/Integration">Integration</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus/Requirements">Requirements</a></li>
+ <li><a href="/Products/Nexus-Professional/At-A-Glance">At a Glance</a></li>
+ <li><a href="/Products/Nexus-Professional/Why-Use-a-Repository">Why Use a Repository</a></li>
+ <li><a href="/Products/Nexus-Professional/Why-Go-Pro">Why go Pro</a>
+ <ul>
+ <li><a href="/Products/Nexus-Professional/Why-Go-Pro/What-s-New-in-2.0">What's New in 2.0</a></li>
+ <li><a href="/Products/Nexus-Professional/Why-Go-Pro/10-Reasons-to-Use-Nexus-Pro">10 Reasons to Use Nexus Pro</a></li>
+ <li><a href="/Products/Nexus-Professional/Why-Go-Pro/Repository-Health-Check">Repository Health Check</a></li>
+ <li class="last"><a href="/Products/Nexus-Professional/Why-Go-Pro/Awareness-is-Critical">Awareness is Critical</a></li>
+ </ul></li>
+ <li><a href="/Products/Nexus-Professional/Features">Features</a></li>
+ <li><a href="/Products/Nexus-Professional/Integration">Integration</a></li>
+ <li><a href="/Products/Nexus-Professional/Requirements">Requirements</a></li>
<li><a href="/Request/Free-Trial/Free-Nexus-Professional-Trial">Free Trial</a></li>
<li><a href="/Request/Live-Demo/Live-Nexus-Professional-Demo">Live Demo</a></li>
- <li class="last"><a href="/Products/Sonatype-Pro-for-Nexus/Purchase">Purchase</a></li>
- </ul>
- </li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson" class="gm m1-3"><em>Sonatype Pro for Hudson</em></a>
- <ul>
- <li><a href="/Products/Sonatype-Pro-for-Hudson/At-A-Glance">At a Glance</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson/Why-Go-Pro">Why go Pro</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson/Features-Overview">Features Overview</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson/Integration">Integration</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson/Requirements">Requirements</a></li>
- <li><a href="/Request/Free-Trial/Free-Hudson-Professional-Trial">Free Trial</a></li>
- <li><a href="/Request/Live-Demo/Live-Hudson-Professional-Demo">Live Demo</a></li>
- <li class="last"><a href="/Products/Sonatype-Pro-for-Hudson/Purchase">Purchase</a></li>
- </ul>
- </li>
- <li class="last"><a href="/Products/Sonatype-Pro-Suite" class="gm m1-1"><em>Sonatype Pro Suite</em></a>
- <ul>
- <li><a href="/Products/Sonatype-Pro-Suite/At-A-Glance">At a Glance</a></li>
- <li><a href="/Products/Sonatype-Pro-Suite/Why-Go-Pro">Why go Pro</a></li>
- <li><a href="/Products/Sonatype-Pro-Suite/Features-Overview">Features Overview</a></li>
- <li><a href="/Products/Sonatype-Pro-Suite/Integration">Integration</a></li>
- <li><a href="/Products/Sonatype-Pro-Suite/Requirements">Requirements</a></li>
- <li><a href="/Request/Free-Trial/Free-Sonatype-Professional-Trial">Free Trial</a></li>
- <li><a href="/Request/Live-Demo/Live-Sonatype-Professional-Demo">Live Demo</a></li>
- <li class="last"><a href="/Products/Sonatype-Pro-Suite/Purchase">Purchase</a></li>
+ <li class="last"><a href="/Products/Nexus-Professional/Purchase">Purchase</a></li>
</ul>
</li>
</ul>
@@ -130,10 +130,11 @@
<ul>
<li><a href="/Services/Enterprise-Support">Enterprise Support</a></li>
<li><a href="/Services/Training">Training</a></li>
+ <li><a href="/Services/Consulting">Consulting</a></li>
<li class="last"><a href="/Services/Webinars">Webinars</a></li>
</ul>
</li>
- <li class="m3"><a href="/Success-Stories" class="tab"><span>Success Stories</span></a></li>
+ <li class="m3"><a href="/News" class="tab"><span>News</span></a></li>
<li class="m4"><a href="/About-Sonatype" class="tab"><span>About Sonatype</span></a>
<ul>
<li><a href="/About-Sonatype/Contributions">Our Contributions</a></li>
@@ -141,7 +142,7 @@
<li><a href="/About-Sonatype/Leadership">Leadership</a></li>
<li><a href="/About-Sonatype/Board-of-Directors">Board of Directors</a></li>
<li><a href="/About-Sonatype/Investors">Investors</a></li>
- <li><a href="/About-Sonatype/News">News</a></li>
+ <li><a href="/About-Sonatype/Success-Stories">Success Stories</a></li>
<li class="last"><a href="/About-Sonatype/Careers">Careers</a></li>
</ul>
</li>
@@ -157,6 +158,8 @@
</div>
</div> <!-- page_header : END -->
+
+
<!-- page-content : START -->
<div id="page-content" class="book s-books ss-book-${bookId}">
@@ -168,7 +171,7 @@
<!-- title-block and subnav : START -->
<div class="title-block trunk">
<div class="title s-icon">
- <h1>${bookTitle}<br />
+ <h1>${bookTitle}<br/>
<span>${title}</span></h1>
</div>
<!-- top_subnav : START -->
@@ -189,7 +192,8 @@
<!-- module_result : END -->
</div>
<!-- page-content : END -->
-
+
+
<!-- page_footer : START -->
<div id="super-footer">
<div class="trunk">
@@ -217,13 +221,13 @@ <h2 class="wht">Still Have Questions?</h2>
<div id="footer-links">
<ul class="fineprint">
<li class="wht"><a href="/Products">Products</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Nexus">Sonatype Pro for Nexus</a></li>
- <li><a href="/Products/Sonatype-Pro-for-Hudson">Sonatype Pro for Hudson</a></li>
- <li><a href="/Products/Sonatype-Pro-Suite">Sonatype Pro Suite</a></li>
+ <li><a href="/Products/Sonatype-Insight">Sonatype Insight</a></li>
+ <li><a href="/Products/Nexus-Professional">Nexus Professional</a></li>
</ul>
<ul class="fineprint">
<li class="wht"><a href="/Services">Services</a></li>
<li><a href="/Services/Enterprise-Support">Enterprise Support</a></li>
+ <li><a href="/Services/Consulting">Consulting</a></li>
<li><a href="/Services/Training">Training</a></li>
<li><a href="/Services/Webinars">Webinars</a></li>
</ul>
@@ -251,20 +255,20 @@ <h2 class="wht">Still Have Questions?</h2>
<li><a href="/Usage/Terms-of-Service">Terms of Service</a></li>
<li class="last"><a href="/Usage/Privacy">Privacy</a></li>
</ul>
- <p>Copyright &copy; 2008-2011, Sonatype Inc. All rights reserved. Includes the third-party code <a href="/Usage/Attributions"><em>listed here</em></a>.
+ <p>Copyright &copy; 2008-2012, Sonatype Inc. All rights reserved. Includes the third-party code <a href="/Usage/Attributions"><em>listed here</em></a>.
Sonatype and Sonatype Nexus are trademarks of Sonatype, Inc. Apache Maven and Maven are trademarks of the <a href="http://www.apache.org" rel="nofollow">Apache Software Foundation</a>. M2Eclipse is a trademark of the Eclipse Foundation. All other trademarks are the property of their respective owners.</p>
</div>
</div> <!-- page_footer : END -->
-<div id="pagecurl">
- <a href="/people/2011/08/online-limited-time-offer-go-pro-for-less-until-sept-16th/?promo=pagecurl&utm_source=pagecurl&utm_medium=comsite&utm_campaign=1108-nexus-oss-to-pro&utm_content=pagecurl">
- <img src="/extension/sonatype/design/sonatype_com/images/pagecurl.png" alt="Sonatype Promotion" />
- <span class="msg">Subscribe via RSS</span>
- </a>
+
</div>
+<!-- page : END --><div id="pagecurl">
+ <a href="/people/2011/08/online-limited-time-offer-go-pro-for-less-until-sept-16th/?promo=pagecurl&utm_source=pagecurl&utm_medium=comsite&utm_campaign=1108-nexus-oss-to-pro&utm_content=pagecurl">
+ <img src="/extension/sonatype/design/sonatype_com/images/pagecurl.png" alt="Sonatype Promotion" />
+ <span class="msg">Subscribe via RSS</span>
+ </a>
</div>
-<!-- page : END -->
<!-- Footer script area: START --><!-- Eloqua, Google Analytics, Chartbeat -->
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/elqNow/elqCfg.js"></script>
<script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/elqNow/elqImg.js"></script><script type="text/javascript" src="/extension/sonatype/design/sonatype_com/javascript/footer.js"></script><!-- Footer script area: END -->
</body>
-</html>
+</html>
30 site/css/book.css
View
@@ -0,0 +1,30 @@
+.book .titlepage h2.title {
+ display: none;
+}
+
+.authorgroup {
+ float: right;
+ width: 140px;
+ margin-top: -20px;
+}
+
+.authorgroup h2 {
+ margin-bottom: 5px;
+ padding-bottom: 0px;
+}
+
+.author {
+ float: left;
+ clear: left;
+}
+
+.book .titlepage hr {
+ display: none;
+}
+
+.toc_intro {
+ margin-top: 20px;
+ float: left;
+ width: 500px;
+ text-align: justify;
+}
9 template.py
View
@@ -8,7 +8,14 @@
path = 'target/site/reference'
for infile in glob.glob( os.path.join(path, '*.html') ):
+ print "Reading File: " + infile
body = open(infile, "r").read()
+ title = body[ body.index( "<title>" ) + 7 : body.rindex("</title>") ]
+
+ if title == "Maven by Example":
+ title = "Table of Contents"
+
body = body[ body.index( "<body>") + 6 : body.rindex("</body>") ]
- title = "Maven by Example"
+
open(infile, "w").write( t.merge(locals()) );
+
Please sign in to comment.
Something went wrong with that request. Please try again.