-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbb.edn
More file actions
20 lines (20 loc) · 786 Bytes
/
bb.edn
File metadata and controls
20 lines (20 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{:tasks
{:requires ([babashka.fs :as fs])
clean
{:task (fs/delete-tree "build")}
mkdirs
{:task (fs/create-dirs "build/docs")}
docstrings
{:task (clojure "-M" "build.clj")}
files
{:depends [mkdirs]
:task (doseq [[src dest] {"site/logo.svg" "build/logo.svg"
"site/index.html" "build/index.html"
"site/style.css" "build/style.css"
"docs/style.css" "build/docs/style.css"
"docs/reset.css" "build/docs/reset.css"
"docs/ui.js" "build/docs/ui.js"}]
(fs/copy src dest {:replace-existing true}))}
build
{:depends [docstrings files]
:task (shell "asciidoctor -D build/docs -b html5 docs/index.adoc")}}}