some css for md-site

This commit is contained in:
q
2018-11-22 10:13:20 +02:00
parent 3250ce0b59
commit 1e1c840fab
2 changed files with 429 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ _serve() {
[[ -z "$1" ]] && root="."
port="$2"
[[ -z "$2" ]] && port="8000"
timeout 7200 $SELF/../web/webserver.py -a 127.0.0.1 -p $port "$root"
timeout 7200 "$SELF"/../web/webserver.py -a 127.0.0.1 -p $port "$root"
}
_autobuild() {
@@ -68,7 +68,7 @@ _recursive_gen() {
rm -f index.html
for md in *.md; do
[[ -d "$md" ]] && continue
pandoc -s -o "${md%.md}.html" "$md" && { rm "$md"; } || _error_in_recursion "$md"
pandoc -s -f markdown -H "$SELF"/md-site.css -o "${md%.md}.html" "$md" && { rm "$md"; } || _error_in_recursion "$md"
echo Generated $1/$md
done
[[ -f "index.html" ]] || { SimpleWebPage -f $parents -t "$title"; echo Generated $1/index.html; }

427
reporting/md-site.css Normal file

File diff suppressed because one or more lines are too long