From 743e6671f48ee82cef3a5635c776113e16493ef1 Mon Sep 17 00:00:00 2001 From: sperka Date: Wed, 17 Jun 2015 16:38:48 -0500 Subject: [PATCH] don't delete temp ipynb but copy it to the output folder --- docs/rst2html.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/rst2html.sh b/docs/rst2html.sh index 70b2e211e..e4cbff367 100644 --- a/docs/rst2html.sh +++ b/docs/rst2html.sh @@ -21,6 +21,8 @@ if [ -z "$OUTPUT" ]; then OUTPUT=$INPUTDIR/$FILE.html fi +OUTPUTDIR=$(dirname $OUTPUT) + # convert RST to temp MD pandoc -i $1 -o $FILE.md @@ -32,6 +34,7 @@ rm $FILE.md # convert ipynb to html with custom template ipython nbconvert --to html --template ./tpl/mbuild_ipynb_template.tpl $FILE.ipynb --output $OUTPUT +mv $FILE.ipynb $OUTPUTDIR/ -# delete temp ipynb -rm $FILE.ipynb \ No newline at end of file +# don't delete temp ipynb +#rm $FILE.ipynb \ No newline at end of file