Permalink
Browse files

Updating Look and Feel of Book, adding sharing buttons

  • Loading branch information...
1 parent 2266491 commit 46b806d58ed235820de046dc13a24d50a0692055 @tobrien tobrien committed May 15, 2012
View
@@ -1,8 +1,16 @@
#!/bin/bash
+rm -rf target/site/reference
+rm -rf target/site/pdf
+
+
mkdir -p target/site/reference
mkdir -p target/site/pdf
+
cp -r target/book-nexus.chunked/* target/site/reference
+mkdir -p target/site/reference/css
+cp -r site/css/book.css target/site/reference/css
+
cp target/book-nexus.pdf target/site/pdf/nxbook-pdf.pdf
python template.py
rsync -e ssh -av target/site/* deployer@www.sonatype.com:/var/www/domains/sonatype.com/www/shared/books/nexus-book/
View
@@ -84,29 +84,4 @@
<affiliation>
<orgname>Sonatype, Inc.</orgname>
</affiliation>
- </editor>
-
- <copyright>
- <year>2011</year>
-
- <holder>Sonatype, Inc.</holder>
- </copyright>
-
- <publisher>
- <publishername>Sonatype, Inc.</publishername>
-
- <address><street>12501 Prosperity Drive, Suite 350</street><city>Silver Spring</city><state>MD</state><postcode>20904</postcode></address>
- </publisher>
-
- <abstract>
- <para>Nexus manages software “artifacts” required for development,
- deployment, and provisioning. If you develop software, Nexus can help
- you share those artifacts with other developers and end-users. Maven’s
- central repository has always served as a great convenience for users of
- Maven, but it has always been recommended to maintain your own
- repositories to ensure stability within your organization. Nexus greatly
- simplifies the maintenance of your own internal repositories and access
- to external repositories. With Nexus you can completely control access
- to, and deployment of, every artifact in your organization from a single
- location.</para>
- </abstract>
+ </editor>
@@ -73,19 +73,30 @@
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>
+ If you are developing software without a repository
+ manager you are likely missing a number of opportunities
+ to reduce some pretty obvious ineffeciencies. If everyone
+ on your team has to hit Central to download artifacts you
+ are missing out on some simple gains in speed and
+ efficiency. If you don't have a local place to deploy
+ artifacts you are forced to share binary artifacts using
+ half-measures and compromises such as storing binaries in
+ source control. Stop developing in the Dark Ages, read
+ this book, and start using a repository manager. Trust
+ us, once you start using Nexus, you'll wonder how you ever
+ functioned without it.
+ </p>
+ </div>
<div class="{name(.)}">
<h2>Authors</h2>
- <p/>
<xsl:apply-templates mode="titlepage.mode"/>
</div>
</xsl:template>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,35 @@
+.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;
+}
+
+.addthis_toolbox {
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
View
@@ -9,6 +9,12 @@
path = 'target/site/reference'
for infile in glob.glob( os.path.join(path, '*.html') ):
body = open(infile, "r").read()
+
+ title = body[ body.index( "<title>" ) + 7 : body.rindex("</title>") ]
+
+ if title == "Repository Management with Nexus":
+ title = "Table of Contents"
+
body = body[ body.index( "<body>") + 6 : body.rindex("</body>") ]
- title = "Repository Management with Nexus"
+
open(infile, "w").write( t.merge(locals()) );

0 comments on commit 46b806d

Please sign in to comment.