Skip to content

Commit

Permalink
don't delete temp ipynb but copy it to the output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sperka committed Jun 17, 2015
1 parent efa6c02 commit 743e667
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/rst2html.sh
Expand Up @@ -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

Expand All @@ -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
# don't delete temp ipynb
#rm $FILE.ipynb

0 comments on commit 743e667

Please sign in to comment.