From 1e1c840fabb286b04adbf33a287309e0637ace96 Mon Sep 17 00:00:00 2001 From: q Date: Thu, 22 Nov 2018 10:13:20 +0200 Subject: [PATCH] some css for md-site --- reporting/md-site | 4 +- reporting/md-site.css | 427 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 429 insertions(+), 2 deletions(-) create mode 100644 reporting/md-site.css diff --git a/reporting/md-site b/reporting/md-site index db7b50a..cfb9dd5 100755 --- a/reporting/md-site +++ b/reporting/md-site @@ -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; } diff --git a/reporting/md-site.css b/reporting/md-site.css new file mode 100644 index 0000000..45a5035 --- /dev/null +++ b/reporting/md-site.css @@ -0,0 +1,427 @@ +