Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Updating Look and Feel of Book, adding sharing buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrien committed May 15, 2012
1 parent 2266491 commit 46b806d
Show file tree
Hide file tree
Showing 17 changed files with 146 additions and 96 deletions.
8 changes: 8 additions & 0 deletions assemble.sh
@@ -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/
27 changes: 1 addition & 26 deletions book-nexus-docinfo.xml
Expand Up @@ -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>
21 changes: 16 additions & 5 deletions docbook-xsl/custom-chunked.xsl
Expand Up @@ -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>
Expand Down
Binary file modified figs/web/ldap-backup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/ldap-multiple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/multi-level-staging.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/multiple-promotion-release.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/nx-open-vs-pro-datasheet-4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/procurement_ask-first-procurement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/procurement_release-procurement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/staging-promotion.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/staging-workflow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/staging_with_staging.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/web/staging_without_staging.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 79 additions & 64 deletions site/book-template.html

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions site/css/book.css
@@ -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;
}
8 changes: 7 additions & 1 deletion template.py
Expand Up @@ -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.