Merge "Add landslide.sh to upstream-training"

This commit is contained in:
Jenkins 2014-10-30 10:19:34 +00:00 committed by Gerrit Code Review
commit 253cd1fae6
2 changed files with 21 additions and 2 deletions

View File

@ -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 <presentation.html> <presentation.rst>
To build all presentations
--------------------------
$ landslide <presentation.rst>
$ ./landslide.sh

View File

@ -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