summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-01-11 13:02:29 +0100
committerTaylan Kammer <taylan.kammer@gmail.com>2026-01-11 13:02:29 +0100
commitdbc3779c552f616437574e04c8673c6f5d8382a6 (patch)
tree567b91aa650e8f9ad9f6a165d4fedda761fb153d /html
parentb737130c059e8e5566caa7aa3144f910d43999ae (diff)
Docs.
Diffstat (limited to 'html')
-rwxr-xr-xhtml/gen.sh27
1 files changed, 24 insertions, 3 deletions
diff --git a/html/gen.sh b/html/gen.sh
index 445704f..03ae570 100755
--- a/html/gen.sh
+++ b/html/gen.sh
@@ -28,11 +28,32 @@ md2ht() {
md2ht index.md index.html
-for note in ../notes/*.md
+for file in ../notes/*.md
do
- name=${note#../notes/}
+ name=${file#../notes/}
name=${name%.md}
- md2ht "$note" "notes/$name.html"
+ md2ht "$file" "notes/$name.html"
+done
+
+shopt -s globstar
+
+for file in ../docs/**/*.md
+do
+ name=${file#../docs/}
+ name=${name%.md}
+ dir=${file#../}
+ dir=${dir%/*}
+ mkdir -p "$dir"
+ md2ht "$file" "docs/$name.html"
+done
+
+for file in ../docs/**/*.txt
+do
+ dir=${file#../}
+ dir=${dir%/*}
+ mkdir -p "$dir"
+ dest=docs/${file#../docs/}
+ cp "$file" "$dest"
done
rsync -a ./ tk:/var/www/html/zisp