some css for md-site
This commit is contained in:
@@ -19,7 +19,7 @@ _serve() {
|
|||||||
[[ -z "$1" ]] && root="."
|
[[ -z "$1" ]] && root="."
|
||||||
port="$2"
|
port="$2"
|
||||||
[[ -z "$2" ]] && port="8000"
|
[[ -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() {
|
_autobuild() {
|
||||||
@@ -68,7 +68,7 @@ _recursive_gen() {
|
|||||||
rm -f index.html
|
rm -f index.html
|
||||||
for md in *.md; do
|
for md in *.md; do
|
||||||
[[ -d "$md" ]] && continue
|
[[ -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
|
echo Generated $1/$md
|
||||||
done
|
done
|
||||||
[[ -f "index.html" ]] || { SimpleWebPage -f $parents -t "$title"; echo Generated $1/index.html; }
|
[[ -f "index.html" ]] || { SimpleWebPage -f $parents -t "$title"; echo Generated $1/index.html; }
|
||||||
|
|||||||
427
reporting/md-site.css
Normal file
427
reporting/md-site.css
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user