From 13ab526a3731b02df4bebd41eb71561f21662937 Mon Sep 17 00:00:00 2001 From: pux Date: Fri, 20 Aug 2021 12:31:53 +0200 Subject: add md2html stuff, temporary, should not be IN a project repos --- update.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 update.sh (limited to 'update.sh') diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..bff70fe --- /dev/null +++ b/update.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +#cp INDEX_template.md INDEX.md +rm INDEX.md + +for i in *.md +do + filename_wo_ext=$(echo "$i" | cut -f 1 -d '.') + if [ $filename_wo_ext != "template" ] && [ $filename_wo_ext != "INDEX_template" ] + then + pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html + + if [ $filename_wo_ext != "INDEX" ] + then + echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md + fi + + fi +done + +#ln -s INDEX.html index.html +ln -s README.html index.html -- cgit v1.2.2-1-g5e49