Skip to content

Commit 2f4c756

Browse files
committed
Use latest autodoc
1 parent 1070461 commit 2f4c756

File tree

2 files changed

+11
-31
lines changed

2 files changed

+11
-31
lines changed

generate_docs

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
#!/bin/bash
22

3-
if ! git diff-index --quiet --cached HEAD ; then
4-
echo "Git index isn't clean. Make sure you have no staged changes. (try 'git reset .')"
5-
exit
6-
fi
3+
export AUTODOC_CMD="lein with-profile +codox codox"
74

8-
echo "Generating docs"
9-
lein codox
10-
11-
echo "Creating new commit"
12-
git --work-tree=gh-pages add -A
13-
14-
TREE=`git write-tree`
15-
PARENT=`git rev-parse origin/gh-pages`
16-
17-
if [ "gh-pages" == $PARENT ]; then # first commit
18-
COMMIT=`git commit-tree $TREE -m 'Updating docs'`
19-
else
20-
COMMIT=`git commit-tree -p $PARENT $TREE -m 'Updating docs'`
21-
fi
22-
23-
echo "Commit $COMMIT"
24-
echo "Pushing to gh-pages"
25-
git reset .
26-
git push origin $COMMIT:refs/heads/gh-pages
27-
git fetch
28-
git log -1 --stat origin/gh-pages
5+
\curl -sSL https://raw.githubusercontent.com/plexus/autodoc/master/autodoc.sh | bash

project.clj

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
:license {:name "Mozilla Public License 2.0"
55
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
66
:dependencies [[org.clojure/clojure "1.8.0"]
7-
[org.clojure/data.json "0.2.6"]
8-
]
9-
:plugins [[lein-codox "0.10.3"]
10-
[lein-doo "0.1.7"]
7+
[org.clojure/data.json "0.2.6"]]
8+
:plugins [[lein-doo "0.1.7"]
119
[lein-cljsbuild "1.1.5"]
1210
[lein-mutate "0.1.0"]]
13-
:codox {:output-path "gh-pages"}
1411
:doo {:build "test"
1512
:alias {:default [:phantom]}}
1613
:cljsbuild {:builds [{:id "test"
@@ -26,4 +23,10 @@
2623
{:dependencies [[org.clojure/clojurescript "1.9.562"]
2724
[com.cemerick/piggieback "0.2.1"]
2825
[lein-doo "0.1.7"]
29-
]}})
26+
]}
27+
:codox {:dependencies [[codox-theme-rdash "0.1.2"]]
28+
:plugins [[lein-codox "0.10.3"]]
29+
:codox {:output-path "gh-pages"
30+
:project {:name "lambdaisland-uri"}
31+
:metadata {:doc/format :markdown} ;; docstring format
32+
:themes [:rdash]}}})

0 commit comments

Comments
 (0)