File tree 2 files changed +11
-31
lines changed
2 files changed +11
-31
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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"
7
4
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
+ \c url -sSL https://raw.githubusercontent.com/plexus/autodoc/master/autodoc.sh | bash
Original file line number Diff line number Diff line change 4
4
:license {:name " Mozilla Public License 2.0"
5
5
:url " https://www.mozilla.org/en-US/MPL/2.0/" }
6
6
: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" ]
11
9
[lein-cljsbuild " 1.1.5" ]
12
10
[lein-mutate " 0.1.0" ]]
13
- :codox {:output-path " gh-pages" }
14
11
:doo {:build " test"
15
12
:alias {:default [:phantom ]}}
16
13
:cljsbuild {:builds [{:id " test"
26
23
{:dependencies [[org.clojure/clojurescript " 1.9.562" ]
27
24
[com.cemerick/piggieback " 0.2.1" ]
28
25
[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 ]}}})
You can’t perform that action at this time.
0 commit comments