Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Dec 17, 2012
1 parent c08b275 commit acb911d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
32 changes: 20 additions & 12 deletions buildDocs.sh
Expand Up @@ -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
Binary file added src/sphinx/_static/logo-mongodb-onwhite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/sphinx/changelog.rst
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sphinx/conf.py
Expand Up @@ -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.
Expand Down

0 comments on commit acb911d

Please sign in to comment.