diff --git a/buildDocs.sh b/buildDocs.sh index d3032005..828ea84c 100755 --- a/buildDocs.sh +++ b/buildDocs.sh @@ -2,22 +2,30 @@ SCALA=2.9.2 WEBSITE_ROOT=rozza.github.com/casbah/ +SPHINX_DIR=./src/sphinx +SITE_DIR=./target/site/ -./sbt "update" "clean" "make-site" "unidoc" +./sbt ++2.9.2 "update" "clean" "make-site" "unidoc" -mkdir -p ./target/site/api.sxr/casbah-commons -mkdir -p ./target/site/api.sxr/casbah-core -mkdir -p ./target/site/api.sxr/casbah-gridfs -mkdir -p ./target/site/api.sxr/casbah-query +mkdir -p $SITE_DIR/api.sxr/casbah-commons +mkdir -p $SITE_DIR/api.sxr/casbah-core +mkdir -p $SITE_DIR/api.sxr/casbah-gridfs +mkdir -p $SITE_DIR/api.sxr/casbah-query -cp ./casbah-commons/target/scala-$SCALA/classes.sxr/* ./target/site/api.sxr/casbah-commons -cp ./casbah-core/target/scala-$SCALA/classes.sxr/* ./target/site/api.sxr/casbah-core -cp ./casbah-gridfs/target/scala-$SCALA/classes.sxr/* ./target/site/api.sxr/casbah-gridfs -cp ./casbah-query/target/scala-$SCALA/classes.sxr/* ./target/site/api.sxr/casbah-query +cp ./casbah-commons/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-commons +cp ./casbah-core/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-core +cp ./casbah-gridfs/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-gridfs +cp ./casbah-query/target/scala-$SCALA/classes.sxr/* $SITE_DIR/api.sxr/casbah-query -touch ./target/site/.nojekyll +touch $SITE_DIR/.nojekyll # Update the sxr in url -find ./target/site/api/ -name \*html -exec sed -i 's#/src\(.*\)/\(.*scala.html\)#\2#' {} \; +find $SITE_DIR/api/ -name \*html -exec sed -i 's#/src\(.*\)/\(.*scala.html\)#\2#' {} \; # Update WEBSITE ROUTE -find ./target/site/api/ -name \*html -exec sed -i "s#/{{WEBSITE_ROOT}}#/$WEBSITE_ROOT#g" {} \; \ No newline at end of file +find $SITE_DIR/api/ -name \*html -exec sed -i "s#/{{WEBSITE_ROOT}}#/$WEBSITE_ROOT#g" {} \; + +# Make pdf / epub +$SPHINX_DIR/ make clean epub latexpdf + +cp $SPHINX_DIR/_build/epub/CasbahMongoDBScalaToolkitDocumentation.epub $SITE_DIR/CasbahDocumentation.epub +cp $SPHINX_DIR/_build/latex/CasbahDocumentation.pdf $SITE_DIR/CasbahDocumentation.pdf \ No newline at end of file diff --git a/src/sphinx/_static/logo-mongodb-onwhite.png b/src/sphinx/_static/logo-mongodb-onwhite.png new file mode 100644 index 00000000..02b73e6d Binary files /dev/null and b/src/sphinx/_static/logo-mongodb-onwhite.png differ diff --git a/src/sphinx/changelog.rst b/src/sphinx/changelog.rst index 488a5622..4f2cdd4c 100644 --- a/src/sphinx/changelog.rst +++ b/src/sphinx/changelog.rst @@ -156,9 +156,8 @@ Changes in Version 2.1.5.0 - Disabled a few tests that weren’t passing and known to be ‘buggy’ in specs1. These are fixed for the upcoming 2.2. release on specs2; they are test bugs rather than Casbah bugs. -- RegEx - :math:`not was just flat out wrong - was producing {"foo": {"foo": //}} instead of {"foo": {"`\ not": - {//}} +- RegEx `not was just flat out wrong - was producing + {"foo": {"foo": //}} instead of {"foo": {"`\ not":{//}} - Added a getAsOrElse method .. _2.8.0 EOL Announcement: http://groups.google.com/group/mongodb-casbah-users/browse_thread/thread/faea8dbd5f90aa25 diff --git a/src/sphinx/conf.py b/src/sphinx/conf.py index b03e5d64..4c483e78 100644 --- a/src/sphinx/conf.py +++ b/src/sphinx/conf.py @@ -188,7 +188,7 @@ # The name of an image file (relative to this directory) to place at the top of # the title page. -latex_logo = 'logo-mongodb.png' +latex_logo = '_static/logo-mongodb-onwhite.png' # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters.