forked from sonatype/nexus-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use separate HTML template project for look and feel
See sonatype#142 And https://issues.sonatype.org/browse/NXBOOK-913 Squashed commit of the following: commit 7c1af13 Author: Manfred Moser <[email protected]> Date: Thu Mar 10 09:22:35 2016 -0800 - added usage of env variable for local deployment path - synced with iq server assemble script in terms of usage of variables for templateScript and docProperties commit bffb13e Author: Manfred Moser <[email protected]> Date: Thu Mar 3 11:14:57 2016 -0800 removed 2.13 links since its not happening yet commit 903862b Author: Manfred Moser <[email protected]> Date: Wed Mar 2 16:56:39 2016 -0800 added property for search URL commit b3723f0 Author: Manfred Moser <[email protected]> Date: Wed Mar 2 11:15:08 2016 -0800 fixed relative depth of links from index page commit f170499 Author: Manfred Moser <[email protected]> Date: Tue Mar 1 14:38:58 2016 -0800 fixed include for properties commit d462198 Author: Manfred Moser <[email protected]> Date: Tue Mar 1 12:44:15 2016 -0800 rebranded index page and added links for 2.12 and 2.13 commit 49b41df Author: Manfred Moser <[email protected]> Date: Tue Mar 1 10:22:38 2016 -0800 added index publishing commit 75941bb Author: Manfred Moser <[email protected]> Date: Tue Mar 1 10:01:53 2016 -0800 script to deploy on local machine emulating production deployment commit 4928a95 Author: Manfred Moser <[email protected]> Date: Mon Feb 29 16:18:27 2016 -0800 usage of properties file with more properties and simplified prop names commit 3851221 Author: Manfred Moser <[email protected]> Date: Mon Feb 29 12:35:01 2016 -0800 updated assemble script to use wrapper, nealry complete, NXBOOK-913 commit 740a4e7 Author: Manfred Moser <[email protected]> Date: Mon Feb 29 12:20:26 2016 -0800 removed site stuff that is now in shared repo, NXBOOK-913
- Loading branch information
Showing
114 changed files
with
147 additions
and
8,271 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# fail if anything errors | ||
set -e | ||
# fail if a function call is missing an argument | ||
set -u | ||
|
||
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
# last folder needs to be nexus-book to reflect production setup | ||
dest=$NEXUS_DOCUMENTATION/nexus-book | ||
mkdir -p $dest | ||
|
||
# load properties to be able to use them in here | ||
source nexus-book.properties | ||
echo "version set to $version" | ||
|
||
function rsyncToDest { | ||
source=$1 | ||
target=$dest/$2 | ||
options=$3 | ||
echo "Syncing $1 to $2 " | ||
mkdir -p $target | ||
rsync $options -av target/$source $target | ||
} | ||
|
||
if [ $publish_master == "true" ]; then | ||
rsyncToDest site/reference/ reference --delete | ||
rsyncToDest site/pdf/ pdf --delete | ||
rsyncToDest site/other/ other --delete | ||
fi | ||
|
||
rsyncToDest site/$version/reference/ $version/reference --delete | ||
rsyncToDest site/$version/pdf/ $version/pdf --delete | ||
rsyncToDest site/$version/other/ $version/other --delete | ||
rsyncToDest site/$version/index.html $version --delete | ||
|
||
if [ $publish_index == "true" ]; then | ||
rsyncToDest site/index.html "" --delete | ||
rsyncToDest site/sitemap.xml "" --delete | ||
rsyncToDest site/sitemap-nexus-2.xml "" --delete | ||
rsyncToDest site/sitemap-nexus-3.xml "" --delete | ||
rsyncToDest site/js/ js --delete | ||
rsyncToDest site/images/ images --delete | ||
rsyncToDest site/css/ css --delete | ||
rsyncToDest site/sitemap.xml "" --delete | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
# The version determines the path on the server under which the book content | ||
# will be made available - e.g. http://books.sonatype.com/nexus-book/2.8/reference/index.html | ||
nexus_version=2.12 | ||
version=2.12 | ||
|
||
# If set to "true" the documentation will in addition be made available in the master | ||
# location at http://books.sonatype.com/nexus-book/reference/index.html | ||
publish_master=true | ||
|
||
publish_index=false | ||
|
||
product="Nexus Repository Manager" | ||
|
||
# TBD chnage to "Nexus Repository Manager Documentation" | ||
bookTitle="Repository Management with Nexus" | ||
|
||
googleSearchToken="011059148005191787079:jycarnaj42w" | ||
|
||
# version has to be same as above, | ||
#searchUrl="http://books.sonatype.com/nexus-book/3.0/reference/" | ||
# and for publish_master true URL has to be | ||
searchUrl="http://books.sonatype.com/nexus-book/reference/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.