Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 31 lines (23 sloc) 1.167 kb
a2cf69b @bwmcadams - Added documentation build script
bwmcadams authored
1 #!/bin/sh
2
11c73d1 @rozza Updated docs to sbt-site
rozza authored
3 SCALA=2.9.2
4 WEBSITE_ROOT=rozza.github.com/casbah/
acb911d @rozza Doc updates
rozza authored
5 SPHINX_DIR=./src/sphinx
6 SITE_DIR=./target/site/
a2cf69b @bwmcadams - Added documentation build script
bwmcadams authored
7
acb911d @rozza Doc updates
rozza authored
8 ./sbt ++2.9.2 "update" "clean" "make-site" "unidoc"
a2cf69b @bwmcadams - Added documentation build script
bwmcadams authored
9
acb911d @rozza Doc updates
rozza authored
10 mkdir -p $SITE_DIR/api.sxr/casbah-commons
11 mkdir -p $SITE_DIR/api.sxr/casbah-core
12 mkdir -p $SITE_DIR/api.sxr/casbah-gridfs
13 mkdir -p $SITE_DIR/api.sxr/casbah-query
a2cf69b @bwmcadams - Added documentation build script
bwmcadams authored
14
acb911d @rozza Doc updates
rozza authored
15 cp ./casbah-commons/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-commons
16 cp ./casbah-core/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-core
17 cp ./casbah-gridfs/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-gridfs
18 cp ./casbah-query/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-query
962e5e3 @bwmcadams UPdated doc build including single Scaladoc buildout
bwmcadams authored
19
acb911d @rozza Doc updates
rozza authored
20 touch $SITE_DIR/.nojekyll
962e5e3 @bwmcadams UPdated doc build including single Scaladoc buildout
bwmcadams authored
21
11c73d1 @rozza Updated docs to sbt-site
rozza authored
22 # Update the sxr in url
acb911d @rozza Doc updates
rozza authored
23 find $SITE_DIR/api/ -name \*html -exec sed -i 's#/src\(.*\)/\(.*scala.html\)#\2#' {} \;
11c73d1 @rozza Updated docs to sbt-site
rozza authored
24 # Update WEBSITE ROUTE
acb911d @rozza Doc updates
rozza authored
25 find $SITE_DIR/api/ -name \*html -exec sed -i "s#/{{WEBSITE_ROOT}}#/$WEBSITE_ROOT#g" {} \;
26
27 # Make pdf / epub
d4652cf @rozza Build fixes
rozza authored
28 make -C $SPHINX_DIR clean epub latexpdf
acb911d @rozza Doc updates
rozza authored
29
30 cp $SPHINX_DIR/_build/epub/CasbahMongoDBScalaToolkitDocumentation.epub $SITE_DIR/CasbahDocumentation.epub
31 cp $SPHINX_DIR/_build/latex/CasbahDocumentation.pdf $SITE_DIR/CasbahDocumentation.pdf
Something went wrong with that request. Please try again.