diff options
author | pux <pux@pux.dom> | 2021-08-20 12:31:53 +0200 |
---|---|---|
committer | pux <pux@pux.dom> | 2021-08-20 12:31:53 +0200 |
commit | 13ab526a3731b02df4bebd41eb71561f21662937 (patch) | |
tree | a272c628a0c6bc584e61c29ad2970735185a7821 /update.sh | |
parent | 25ec85247b6cdb0e3eee51c8eb12be54d0c6105f (diff) | |
download | fenix_lr40r_diffusor-13ab526a3731b02df4bebd41eb71561f21662937.tar.gz fenix_lr40r_diffusor-13ab526a3731b02df4bebd41eb71561f21662937.tar.bz2 fenix_lr40r_diffusor-13ab526a3731b02df4bebd41eb71561f21662937.zip |
add md2html stuff, temporary, should not be IN a project repos
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 |