diff --git a/doc/upstream-training/README b/doc/upstream-training/README index 26f7daf0..3e052b0d 100644 --- a/doc/upstream-training/README +++ b/doc/upstream-training/README @@ -12,7 +12,12 @@ Install the latest stable version of Landslide with a python package manager lik $ pip install landslide -To build the presentations +To build a presentation +----------------------- + + $ landslide -r -d + +To build all presentations -------------------------- - $ landslide + $ ./landslide.sh diff --git a/doc/upstream-training/landslide.sh b/doc/upstream-training/landslide.sh new file mode 100755 index 00000000..4c440855 --- /dev/null +++ b/doc/upstream-training/landslide.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +which landslide +LANDSLIDE_MISSING=$? + +if [[ ${LANDSLIDE_MISSING} -ne 0 ]]; then + echo "landslide isn't on your path. Do you need to activate a virtual environment?" + exit 1 +fi + +for presentation in *.rst; do + presentation_name=$(basename "${presentation}" .rst) + landslide -r -d "${presentation_name}.html" "${presentation}" +done