From ec34002f850be0bfb02c0a910f40f866db80b3da Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Sat, 6 Sep 2014 00:32:26 +0200 Subject: [PATCH] Make the tables pretty --- pdns/docs/Makefile | 3 ++- pdns/docs/process-md.sh | 14 +++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) 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 -- 2.47.2