Permalink
Browse files

Doc updates

  • Loading branch information...
1 parent c08b275 commit acb911d56b35f62879ed22868ef5696100ff6807 @rozza rozza committed Dec 17, 2012
Showing with 23 additions and 16 deletions.
  1. +20 −12 buildDocs.sh
  2. BIN src/sphinx/_static/logo-mongodb-onwhite.png
  3. +2 −3 src/sphinx/changelog.rst
  4. +1 −1 src/sphinx/conf.py
View
@@ -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" {} \;
+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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -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": /<regex>/}} instead of {"foo": {"`\ not":
- {//}}
+- RegEx `not was just flat out wrong - was producing
+ {"foo": {"foo": /<regex>/}} 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
View
@@ -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.

0 comments on commit acb911d

Please sign in to comment.