docs/tutorial/compile.sh
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 17 Jul 2019 12:47:20 -0700
changeset 4760 7e034d44bd4b
parent 3376 aad37ffd7d58
child 5226 38d225efcea9
permissions -rwxr-xr-x
py3: also catch ImportError when relative import fails Python 3 apparently raises an ImportError where Python 2 raised a ValueError.

#!/bin/bash
set -eox pipefail


function compile {
    pandoc \
    -s $1 \
    -o $2 \
    --toc --toc-depth=4 \
    -F pandocfilters/examples/graphviz.py -F mypandocfilters/graphviz-file.py -F mypandocfilters/raw-file.py \
    -t html5 \
    --template standalone.html --variable=template_css:uikit.css

}

compile slides.md index.html