forked from clj-commons/useful
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API docs via codox, and github pages branch script
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ target/ | |
.ritz* | ||
.project | ||
.classpath | ||
doc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters