diff options
-rwxr-xr-x | convert.sh | 5 | ||||
-rwxr-xr-x | deploy.sh | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/convert.sh b/convert.sh new file mode 100755 index 0000000..fdf78e5 --- /dev/null +++ b/convert.sh @@ -0,0 +1,5 @@ +#!/bin/sh +echo Writing to ${1%.*}.html +cat "$1" \ + | sed 's/.md)/.html)/g' \ + | pandoc -s --from=gfm --to=html -c /style.css -B header.html -H icon.html -M pagetitle="Eugene's Space" --shift-heading-level-by=1 > ${1%.*}.html @@ -1,3 +1,4 @@ #!/bin/sh -rsync -zarv --exclude=".git" . root@eug-vs.xyz:/var/www/website +find . -type f -name '*.md' -exec ./convert.sh {} \; +rsync -zarv --exclude=".git" --exclude="*.md" . root@eug-vs.xyz:/var/www/website |