Skip to content

Commit 2c37ada

Browse files
committed
Add site index page to build
Documentation moved to /docs
1 parent 35e687b commit 2c37ada

File tree

4 files changed

+75
-73
lines changed

4 files changed

+75
-73
lines changed

bb.edn

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
clean
44
{:task (fs/delete-tree "build")}
55
mkdirs
6-
{:task (fs/create-dirs "build")}
6+
{:task (fs/create-dirs "build/docs")}
77
docstrings
88
{:task (clojure "-M" "build.clj")}
9-
images
9+
files
1010
{:depends [mkdirs]
11-
:task (fs/copy "logo.svg" "build/logo.svg" {:replace-existing true})}
11+
:task (doseq [[src dest] {"site/logo.svg" "build/logo.svg"
12+
"site/index.html" "build/index.html"
13+
"site/style.css" "build/style.css"}]
14+
(fs/copy src dest {:replace-existing true}))}
1215
build
13-
{:depends [docstrings images]
14-
:task (shell "asciidoctor -D build -b html5 index.adoc")}}}
16+
{:depends [docstrings files]
17+
:task (shell "asciidoctor -D build/docs -b html5 index.adoc")}}}

docinfo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<style>
22
#header {
3-
background-image: url(logo.svg);
3+
background-image: url(../logo.svg);
44
background-repeat: no-repeat;
55
background-size: 66px;
66
background-position: 0px 46px;

logo.svg

Lines changed: 0 additions & 66 deletions
This file was deleted.

site/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

site/logo.svg

Lines changed: 66 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)