Skip to content

Commit

Permalink
API docs via codox, and github pages branch script
Browse files Browse the repository at this point in the history
  • Loading branch information
glenjamin committed May 12, 2014
1 parent 0cf98c9 commit 41828a0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ target/
.ritz*
.project
.classpath
doc/
18 changes: 18 additions & 0 deletions build-docs.sh
@@ -0,0 +1,18 @@
#!/bin/sh

set -e

lein doc
echo "*** Docs built ***"
tmpdir=`mktemp -d /tmp/flatland-useful.XXXXXX`
mv doc/** $tmpdir
rmdir doc
git checkout gh-pages
mv $tmpdir/** .
git add -Av .
git commit -m "Updated docs"
echo "*** gh-pages branch updated ***"
rmdir $tmpdir
git checkout -
echo "Run this to complete:"
echo "git push origin gh-pages:gh-pages"
3 changes: 2 additions & 1 deletion project.clj
Expand Up @@ -9,4 +9,5 @@
[org.clojure/tools.reader "0.7.2"]]
:aliases {"testall" ["with-profile" "dev,default:dev,1.3,default:dev,1.4,default" "test"]}
:profiles {:1.4 {:dependencies [[org.clojure/clojure "1.4.0"]]}
:1.3 {:dependencies [[org.clojure/clojure "1.3.0"]]}})
:1.3 {:dependencies [[org.clojure/clojure "1.3.0"]]}}
:plugins [[codox "0.8.0"]])

0 comments on commit 41828a0

Please sign in to comment.