aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--assets/index_begin.html2
-rw-r--r--assets/index_end.html8
-rw-r--r--conf/clog.conf2
4 files changed, 17 insertions, 4 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
diff --git a/assets/index_begin.html b/assets/index_begin.html
index 4e0c9b3..bf13b45 100644
--- a/assets/index_begin.html
+++ b/assets/index_begin.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
diff --git a/assets/index_end.html b/assets/index_end.html
index 85ef445..5c93d38 100644
--- a/assets/index_end.html
+++ b/assets/index_end.html
@@ -5,5 +5,13 @@
<a href="https://jigsaw.w3.org/css-validator/check/referer">CSS3</a>
</span>
+<hr class="hdiv">
+
+<script src="/static/js/mermaid.min.js"></script>
+<script>
+mermaid.initialize({theme: "dark"});
+mermaid.init(undefined, ".language-mermaid");
+</script>
+
</body>
</html>
diff --git a/conf/clog.conf b/conf/clog.conf
index f26429b..8006503 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -1,7 +1,7 @@
# clog configuration
server notls {
- bind 127.0.0.1 8888
+ bind 0.0.0.0 8888
tls no
}