summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimacs <vimacs.hacks@gmail.com>2017-08-29 08:22:29 +0000
committervimacs <vimacs.hacks@gmail.com>2017-08-29 08:22:29 +0000
commit3e22b6c02251fcb56e0babb0a592bcad4b92e7c7 (patch)
tree5541ef79a25ab9b9d8debd78b56f56a8ec597ce2
parentcc80c92bd39179f131f1424501b9be3e10f1557f (diff)
downloadwerc-3e22b6c02251fcb56e0babb0a592bcad4b92e7c7.tar.xz
update rst formatting
-rw-r--r--bin/contrib/rst-template.txt2
-rwxr-xr-xbin/contrib/rst2html5.sh3
-rw-r--r--etc/initrc.local2
-rw-r--r--pub/style/style.css4
4 files changed, 10 insertions, 1 deletions
diff --git a/bin/contrib/rst-template.txt b/bin/contrib/rst-template.txt
new file mode 100644
index 0000000..e911471
--- /dev/null
+++ b/bin/contrib/rst-template.txt
@@ -0,0 +1,2 @@
+%(body_pre_docinfo)s
+%(body)s
diff --git a/bin/contrib/rst2html5.sh b/bin/contrib/rst2html5.sh
new file mode 100755
index 0000000..7e264f1
--- /dev/null
+++ b/bin/contrib/rst2html5.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec rst2html5 --template=$(dirname $(realpath $0))/rst-template.txt "$@"
diff --git a/etc/initrc.local b/etc/initrc.local
index bcdfc98..a019078 100644
--- a/etc/initrc.local
+++ b/etc/initrc.local
@@ -25,7 +25,7 @@ path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin)
#formatter=(md2html.awk)
#formatter=(fltr_cache markdown.pl)
formatter=(fltr_cache pandoc_format.sh)
-rst_formatter=(fltr_cache rst2html)
+rst_formatter=(fltr_cache rst2html5.sh)
asciidoc_formatter=(fltr_cache asciidoc.sh)
# Enable debugging, to disable set to ()
diff --git a/pub/style/style.css b/pub/style/style.css
index 4977e5c..00bc4e6 100644
--- a/pub/style/style.css
+++ b/pub/style/style.css
@@ -194,6 +194,10 @@ li ul {
color: rgb(100,135,220);
}
+h1.title, p.subtitle {
+ text-align: center;
+}
+
#main-copy h1, #main-copy h2 {
color: rgb(0,102,204);
background-color: transparent;