summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2015-11-14 13:51:55 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2015-11-14 13:51:55 -0500
commit646748359a60dc9a71fa67c21e6ce1d4cacf9dce (patch)
treefa1af5188fe3fc3f0dbdfd392c667ba3fb956826
Initial import.
-rwxr-xr-xpublish.sh17
-rw-r--r--static/header-ext.html2
-rw-r--r--static/main.css41
3 files changed, 60 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh
new file mode 100755
index 0000000..674403d
--- /dev/null
+++ b/publish.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+set -x
+
+(cd input && git pull)
+
+INPUTS=$(find input -name '*.org' -exec grep -l "#+PUBLISH" {} \;)
+readonly filter='s/#\+PUBLISH//g; ;s/\[([^\]]*)\.org\]/[$1.html]/g'
+
+mkdir -p www
+cp static/*.css www
+
+for input in ${INPUTS}; do
+ output="www${input#input}"
+ output="${output%org}html"
+ mkdir -p $(dirname "$output")
+ perl -pe "$filter" "$input" | pandoc -f org -s -t html5 -H static/header-ext.html -o "$output"
+done
diff --git a/static/header-ext.html b/static/header-ext.html
new file mode 100644
index 0000000..6f12631
--- /dev/null
+++ b/static/header-ext.html
@@ -0,0 +1,2 @@
+<link rel="stylesheet" type="test/css" href="main.css"/>
+<link href='https://fonts.googleapis.com/css?family=Noto+Sans' rel='stylesheet' type='text/css'>
diff --git a/static/main.css b/static/main.css
new file mode 100644
index 0000000..adb6b49
--- /dev/null
+++ b/static/main.css
@@ -0,0 +1,41 @@
+/*
+.base00-background { background-color: #000000; }
+.base01-background { background-color: #303030; }
+.base02-background { background-color: #505050; }
+.base03-background { background-color: #b0b0b0; }
+.base04-background { background-color: #d0d0d0; }
+.base05-background { background-color: #e0e0e0; }
+.base06-background { background-color: #f5f5f5; }
+.base07-background { background-color: #ffffff; }
+.base08-background { background-color: #fb0120; }
+.base09-background { background-color: #fc6d24; }
+.base0A-background { background-color: #fda331; }
+.base0B-background { background-color: #a1c659; }
+.base0C-background { background-color: #76c7b7; }
+.base0D-background { background-color: #6fb3d2; }
+.base0E-background { background-color: #d381c3; }
+.base0F-background { background-color: #be643c; }
+
+.base00 { color: #000000; }
+.base01 { color: #303030; }
+.base02 { color: #505050; }
+.base03 { color: #b0b0b0; }
+.base04 { color: #d0d0d0; }
+.base05 { color: #e0e0e0; }
+.base06 { color: #f5f5f5; }
+.base07 { color: #ffffff; }
+.base08 { color: #fb0120; }
+.base09 { color: #fc6d24; }
+.base0A { color: #fda331; }
+.base0B { color: #a1c659; }
+.base0C { color: #76c7b7; }
+.base0D { color: #6fb3d2; }
+.base0E { color: #d381c3; }
+.base0F { color: #be643c; }
+*/
+
+body, p, h1 {
+ background-color: #ffffff;
+ color: #303030;
+ font-family: 'Noto Sans', sans-serif;
+} \ No newline at end of file