docs/tutorial/compile.sh
author Boris Feld <boris.feld@octobus.net>
Fri, 22 Nov 2019 18:56:42 +0100
changeset 5226 38d225efcea9
parent 3376 aad37ffd7d58
permissions -rwxr-xr-x
tutorial: compile the tutorial in rst so it can be included
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3376
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     1
#!/bin/bash
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     2
set -eox pipefail
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     3
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     4
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     5
function compile {
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     6
    pandoc \
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     7
    -s $1 \
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     8
    -o $2 \
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
     9
    --toc --toc-depth=4 \
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    10
    -F pandocfilters/examples/graphviz.py -F mypandocfilters/graphviz-file.py -F mypandocfilters/raw-file.py \
5226
38d225efcea9 tutorial: compile the tutorial in rst so it can be included
Boris Feld <boris.feld@octobus.net>
parents: 3376
diff changeset
    11
    -t rst \
38d225efcea9 tutorial: compile the tutorial in rst so it can be included
Boris Feld <boris.feld@octobus.net>
parents: 3376
diff changeset
    12
    # --template standalone.html --variable=template_css:uikit.css
3376
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    13
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    14
}
aad37ffd7d58 doc: import the training support
Boris Feld <boris.feld@octobus.net>
parents:
diff changeset
    15
5226
38d225efcea9 tutorial: compile the tutorial in rst so it can be included
Boris Feld <boris.feld@octobus.net>
parents: 3376
diff changeset
    16
compile slides.md index.rst