aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-04-12 17:05:19 -0500
committerMichael McVady <femtonaut@gmail.com>2023-04-12 17:05:19 -0500
commitf6bc52181033e982cf5088e121af5d6e616cf8cd (patch)
tree758fb33330656117e5330aa45cd6d688f73a0675 /Makefile
parent100bd1f5c9d1788e956660499e4cf96ef121c1c5 (diff)
Hack in Mermaid JS rendering
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 102484c..a7f7cc1 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ build:
clean:
kodev clean
rm -rf lib
+ rm -f assets/static/js/*
docker-build:
DOCKER_BUILDKIT=1 docker build -t clog .
@@ -21,12 +22,16 @@ docker-run:
docker rm -f clog
docker run --name clog -p 8888:8888 -d clog:latest
-fetch-dependencies:
- # lib/md4c
+fetch-dependencies: clean
mkdir -p lib
+ # md4c
curl -L https://github.com/mity/md4c/archive/refs/tags/release-0.4.8.tar.gz -o lib/md4c-0.4.8.tar.gz
tar xf lib/md4c-0.4.8.tar.gz -C lib
mv lib/md4c-release-0.4.8 lib/md4c
+ # mermaidjs
+ curl -L https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js -o lib/mermaid.min.js
+ mkdir -p assets/static/js
+ cp lib/mermaid.min.js assets/static/js
run:
kodev run