File tree 6 files changed +25
-20
lines changed
6 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 1
1
.cpcache /
2
2
analysis.edn
3
- /config .clj
3
+ /proj .clj
4
4
/repo /
5
5
/repo-docs /
Original file line number Diff line number Diff line change 11
11
12
12
(def shared (edn-read " params.clj" ))
13
13
14
+ (def custom
15
+ {" core.cache" {:name " A caching library implementing various cache strategies" }
16
+ " spec.alpha" {:name " Specifying the structure of data and functions." }
17
+ })
18
+
14
19
(p/merge-params
15
- (merge shared
16
- {:root (str (.getAbsolutePath (File. " repo" )) " /" )
17
- :output-path (str (.getAbsolutePath (File. " repo-docs" )) " /" )}))
20
+ (merge shared
21
+ {:project PROJECT
22
+ :project-home (str " https://github.com/clojure/" PROJECT " /" )
23
+ :name PROJECT
24
+ :page-title (str PROJECT " API Reference" )
25
+ :web-home (str " https://clojure.github.io/" PROJECT " /" )
26
+ :web-src-dir (str " https://github.com/clojure/" PROJECT " /blob/" )
27
+ :root (str (.getAbsolutePath (File. " repo" )) " /" )
28
+ :output-path (str (.getAbsolutePath (File. " repo-docs" )) " /" )
29
+ :branches [{:name " master" :version VERSION :status " in development" }]}
30
+ (get custom PROJECT)))
18
31
19
- (let [branch-info {:name " master" :version " 0.6.6 " :status " stable " :first? true }
32
+ (let [branch-info {:name " master" :version VERSION :status " in development " :first? true }
20
33
all-branch-info (:branches shared)]
21
34
(h/make-all-pages branch-info all-branch-info (edn-read " analysis.edn" )))
22
35
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
# TODO - remove
6
- PROJECT=core.cache
6
+ PROJECT=spec.alpha
7
7
8
8
# Create or refresh repo
9
9
if [[ ! -d repo ]]; then
13
13
echo " Refreshing repo area"
14
14
(cd repo && git fetch && git reset --hard)
15
15
fi
16
+ version=" $( cd repo && mvn -q -N org.codehaus.mojo:exec-maven-plugin:1.3.1:exec -Dexec.executable=' echo' -Dexec.args=' ${project.version}' | tail -1) "
17
+ echo " version=$version "
16
18
17
19
# Create or clean output directory
18
20
if [[ ! -d repo-docs ]]; then
@@ -32,11 +34,12 @@ cp -R site/* repo-docs
32
34
# Run autodoc-collect
33
35
echo " Analyzing $PROJECT "
34
36
rm -f analysis.edn
35
- cat collect.clj | clojure -C:collect -
37
+ echo " (def PROJECT \" $PROJECT \" ) (def VERSION \" $version \" )" > proj.clj
38
+ cat proj.clj collect.clj | clojure -C:collect -
36
39
37
40
# Run autodoc
38
41
echo " Building $PROJECT "
39
- cat build.clj | clojure -R:build -
42
+ cat proj.clj build.clj | clojure -R:build -
40
43
41
44
# Commit
42
45
if [[ ! -z " $COMMIT " ]]; then
Original file line number Diff line number Diff line change 7
7
" src/main/clojure"
8
8
9
9
; ; Analyze these namespaces
10
- " clojure.core.cache "
10
+ ( str " clojure." PROJECT)
11
11
12
12
; ; Skip loading these namespaces
13
13
" "
Original file line number Diff line number Diff line change 2
2
:paths []
3
3
4
4
:deps {
5
- org.clojure/core.cache {:mvn/version nil }
6
5
autodoc/autodoc {:mvn/version " 1.1.2" }
7
6
}
8
7
Original file line number Diff line number Diff line change 1
1
{ ; ; Build parameters shared across all branches
2
- :project " core.cache"
3
- :project-home " https://github.com/clojure/core.cache/"
4
- :name " core.cache"
5
- :description " A caching library implementing various cache strategies"
6
- :page-title " core.cache API Reference"
7
2
:copyright " Copyright 2007-2017 by Rich Hickey and the various contributors"
8
3
:source-path [" src/main/clojure" ]
9
- ; ; :param-dir "."
10
- ; ; :template-dir "templates"
11
- :web-home " https://clojure.github.io/core.cache/"
12
- :web-src-dir " https://github.com/clojure/core.cache/blob/"
13
4
:external-doc-tmpdir " tmp"
14
5
:file-prefix " "
15
6
:build-json-index false
16
7
:build-raw-index false
17
8
:scm-tool " git"
18
- :branches [{:name " master" :version :from-pom :status " stable" }]
19
9
}
You can’t perform that action at this time.
0 commit comments