summaryrefslogtreecommitdiff
path: root/gen-freestanding.sh
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2022-04-01 00:04:08 -0400
committereudoxia <uplink@distress.network>2022-04-01 00:04:08 -0400
commiteac46231ab86e3b6a3862c92323ee58fe1ee722b (patch)
tree0440a92a680eb402735991cd4fa791de0c6437fa /gen-freestanding.sh
parent27f4773b122a2758cfaf88537c9e1a8ad5df7e69 (diff)
doc generation integrated with distress.network
Diffstat (limited to 'gen-freestanding.sh')
-rwxr-xr-xgen-freestanding.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/gen-freestanding.sh b/gen-freestanding.sh
new file mode 100755
index 0000000..53f69ca
--- /dev/null
+++ b/gen-freestanding.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+for file in "data" "log" "tangle" "weave" ; do
+ in="${file}.lp" ; out="doc/freestanding/${file}.html" ;
+ cp "doc/header-html" "$out" ;
+ cat "doc/header-lp" "$in" | ./weave | lowdown -Thtml >> "$out" ;
+ printf "</body>\n</html>" >> "$out" ;
+ sed 's/\(.*\)@= \(.*\) =@/\1<span class="ref" >(\2)<\/span>/1' -i'' "$out" ;
+ echo "[ok] generated text '${file}'" ;
+done