From: Pieter Lexis Date: Fri, 5 Sep 2014 22:32:26 +0000 (+0200) Subject: Make the tables pretty X-Git-Tag: rec-3.7.0-rc1~161^2^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec34002f850be0bfb02c0a910f40f866db80b3da;p=thirdparty%2Fpdns.git Make the tables pretty --- diff --git a/pdns/docs/Makefile b/pdns/docs/Makefile index 8f90c9d5bd..72c0713991 100644 --- a/pdns/docs/Makefile +++ b/pdns/docs/Makefile @@ -15,8 +15,9 @@ html-new/index.html: process-md.sh mkdocs.yml markdown/** markdown/*/** mkdir -p html-new mkdir -p doc-build rsync -a --delete markdown/. doc-build/. - ./process-md.sh + ./process-md.sh pre mkdocs build + ./process-md.sh post pdns-expanded.html: pdns-expanded.xml xmlto xhtml-nochunks -m config.xsl $< diff --git a/pdns/docs/process-md.sh b/pdns/docs/process-md.sh index 5494d8c41c..f5c15e0a1b 100755 --- a/pdns/docs/process-md.sh +++ b/pdns/docs/process-md.sh @@ -1,5 +1,13 @@ #!/bin/sh -for file in `find doc-build -name '*.md' -type f -print`; do - pandoc -f markdown_github+pipe_tables -t markdown_github+pipe_tables -F markdown/process-includes.py $file -o $file -done +pre() { + for file in `find doc-build -name '*.md' -type f -print`; do + pandoc -f markdown_github+pipe_tables -t markdown_github+pipe_tables -F markdown/process-includes.py $file -o $file + done +} + +post() { + find html-new -type f -name '*.html' -exec sed -i 's//
/' {} + +} + +$1