Created
February 1, 2016 02:48
-
-
Save petrelharp/88a2bef2e40ce50d343f to your computer and use it in GitHub Desktop.
make a quick html slideshow of a bunch of images (with pandoc + slidy)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage=" | |
Make a reveal.js slideshow, e.g. of the contents of directory | |
$0 (files to put on slides) > (output html document) | |
for instance, | |
make-slideshow.sh *png > index.html | |
" | |
PANDOC_OPTS="-t slidy --standalone" | |
( | |
for fname in "$@" | |
do | |
echo "--------------------" | |
echo "" | |
echo "![${fname}](${fname}){width=100% height=100%}" | |
echo "" | |
done | |
echo "--------------------" | |
) | pandoc $PANDOC_OPTS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment