Skip to content

Commit

Permalink
release 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzdiego committed Mar 8, 2020
1 parent aa6cf57 commit 6c190f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RUN apt-get update && \
WORKDIR /home/
RUN wget https://github.com/jgm/pandoc/releases/download/2.9.2/pandoc-2.9.2-1-amd64.deb && \
dpkg -i pandoc-2.9.2-1-amd64.deb
RUN wget https://github.com/asanzdiego/markdownslides/archive/6.4.zip && unzip 6.4.zip
RUN wget https://github.com/asanzdiego/markdownslides/archive/6.5.zip && unzip 6.5.zip
WORKDIR /home/markdownslides-master
ADD . /home/markdownslides-master
22 changes: 14 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ function buildRevealSlides() {
sed -i s/\\/h2\>\</\\/h1\>\</g "../export/$NAME-slides$PDF$PLUS.html"

if [ "$DEFAULT_BUILD" == "REVEAL_SLIDES" ] && [ "$PDF" != "-pdf" ]; then
info "Exporting default build... ../export/$NAME$PLUS.html"
cp "../export/$NAME-slides$PLUS.html" "../export/$NAME$PLUS.html"
info "Convert to default build... ../export/$NAME$PLUS.html"
mv "../export/$NAME-slides$PLUS.html" "../export/$NAME$PLUS.html"
fi
}

Expand All @@ -349,7 +349,8 @@ function buildRevealSlidesPdf() {
rm -f "../export/$NAME-slides-pdf$PLUS.html"

if [ "$DEFAULT_BUILD" == "REVEAL_SLIDES_PDF" ]; then
cp "../export/$NAME-slides$PLUS.pdf" "../export/$NAME$PLUS.pdf"
info "Convert to default build... ../export/$NAME$PLUS.pdf"
mv "../export/$NAME-slides$PLUS.pdf" "../export/$NAME$PLUS.pdf"
fi
}

Expand All @@ -364,7 +365,8 @@ function buildPowerPointSlides() {
"$NUMBERS" --mathjax -o "../export/$NAME-slides$PLUS.pptx" "../export/$NAME-slides$PLUS.md"

if [ "$DEFAULT_BUILD" == "POWER_POINT_SLIDES" ]; then
cp "../export/$NAME-slides$PLUS.pptx" "../$NAME.pptx"
info "Convert to default build... ../export/$NAME$PLUS.pptx"
mv "../export/$NAME-slides$PLUS.pptx" "../$NAME.pptx"
fi
}

Expand All @@ -380,7 +382,8 @@ function buildHtmlBook() {
"$NUMBERS" --mathjax -o "../export/$NAME-book$PLUS.html" "../export/$NAME-book$PLUS.md"

if [ "$DEFAULT_BUILD" == "HTML_BOOK" ]; then
cp "../export/$NAME-book$PLUS.html" "../$NAME.html"
info "Convert to default build... ../export/$NAME$PLUS.html"
mv "../export/$NAME-book$PLUS.html" "../$NAME$PLUS.html"
fi
}

Expand All @@ -395,7 +398,8 @@ function buildDocxBook() {
"$NUMBERS" --mathjax -o "../export/$NAME-book$PLUS.docx" "../export/$NAME-book$PLUS.md"

if [ "$DEFAULT_BUILD" == "DOCX_BOOK" ]; then
cp "../export/$NAME-book$PLUS.docx" "../$NAME.docx"
info "Convert to default build... ../export/$NAME$PLUS.docx"
mv "../export/$NAME-book$PLUS.docx" "../$NAME$PLUS.docx"
fi
}

Expand All @@ -410,7 +414,8 @@ function buildEpubBook() {
"$NUMBERS" --mathjax -o "../export/$NAME-book$PLUS.epub" "../export/$NAME-book$PLUS.md"

if [ "$DEFAULT_BUILD" == "EPUB_BOOK" ]; then
cp "../export/$NAME-book$PLUS.epub" "../$NAME.epub"
info "Convert to default build... ../export/$NAME$PLUS.epub"
mv "../export/$NAME-book$PLUS.epub" "../$NAME$PLUS.epub"
fi
}

Expand All @@ -426,7 +431,8 @@ function buildPdfBook() {
"$NUMBERS" --mathjax -o "../export/$NAME-book$PLUS.pdf"

if [ "$DEFAULT_BUILD" == "PDF_BOOK" ]; then
cp "../export/$NAME-book$PLUS.pdf" "../$NAME.pdf"
info "Convert to default build... ../export/$NAME$PLUS.pdf"
mv "../export/$NAME-book$PLUS.pdf" "../$NAME$PLUS.pdf"
fi
}

Expand Down

0 comments on commit 6c190f9

Please sign in to comment.