-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.clj
39 lines (34 loc) · 1.33 KB
/
build.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(require '[autodoc.build-html :as h]
'[autodoc.params :as p]
'[autodoc.doc-files :as d]
'[clojure.edn :as e])
(import [java.io PushbackReader FileReader File])
(defn edn-read [f]
(let [EOF (Object.)]
(with-open [rdr (PushbackReader. (FileReader. (File. f)))]
(e/read {:eof EOF} rdr))))
(def custom
{;; "project.name" {:override "attributes"}
})
(p/merge-params
(merge
{:copyright "Copyright 2007-2023 by Rich Hickey and the various contributors"
:source-path ["src/main/clojure"]
:external-doc-tmpdir "tmp"
:file-prefix ""
:build-json-index false
:build-raw-index false
:scm-tool "git"
:project PROJECT
:project-home (str "https://github.com/clojure/" PROJECT "/")
:name PROJECT
:page-title (str PROJECT " API Reference")
:web-home (str "https://clojure.github.io/" PROJECT "/")
:web-src-dir (str "https://github.com/clojure/" PROJECT "/blob/")
:root (str (.getAbsolutePath (File. "repo")) "/")
:output-path (str (.getAbsolutePath (File. "repo-docs")) "/")
:branches [{:name "master" :version VERSION :status "in development"}]}
(get custom PROJECT)))
(let [branch-info {:name "master" :version VERSION :status "in development" :first? true}]
(h/make-all-pages branch-info nil (edn-read "analysis.edn")))
(shutdown-agents)