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 $<
#!/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/<table>/<table class="table-bordered">/' {} +
+}
+
+$1