Skip to content

Instantly share code, notes, and snippets.

@mm53bar
Created February 16, 2013 18:05
Show Gist options
  • Save mm53bar/4967974 to your computer and use it in GitHub Desktop.
Save mm53bar/4967974 to your computer and use it in GitHub Desktop.
Turn your markdown-written user stories into a PDF requirements doc

Introduction

Stakeholders

Other Stuff

\pagebreak

#!/bin/sh
#
# bootstrap
#
# Add to bin/ folder and make executable
set -e
#
# Check for optional pandoc
#
if test ! $(which pandoc)
then
echo " x You don't have pandoc. This is an optional install. You can get it from:"
echo " http://code.google.com/p/pandoc/downloads/list"
else
echo " + pandoc found."
fi
#
# Check for optional latex
#
if test ! $(which /usr/texbin/pdflatex)
then
echo " x You don't have latex. This is an optional install. You can get it from:"
echo " http://www.tug.org/mactex/index.html"
else
echo " + latex found."
fi
#
# Startup instructions
#
echo ""
echo " Good work. We're ready to rock."
#!/bin/sh
#
# Add to bin folder and make executable
set -e
baseDir=docs/requirements/source
echo
echo "The generation process will start now."
time pandoc -S -f markdown -o docs.pdf --latex-engine=/usr/texbin/pdflatex \
$baseDir/title.txt \
$baseDir/01-introduction/01-intro.markdown
echo
echo "Done!"
% Project Requirements
% Firstname Lastname
\pagebreak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment