summaryrefslogtreecommitdiff
path: root/data/update.sh
blob: 687c805992d129c9f11fd480ebefc12aa469dacf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

cp INDEX_template.md 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
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa