Skip to content

Commit 6c190f9

Browse files
committed
release 6.5
1 parent aa6cf57 commit 6c190f9

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ RUN apt-get update && \
1010
WORKDIR /home/
1111
RUN wget https://github.com/jgm/pandoc/releases/download/2.9.2/pandoc-2.9.2-1-amd64.deb && \
1212
dpkg -i pandoc-2.9.2-1-amd64.deb
13-
RUN wget https://github.com/asanzdiego/markdownslides/archive/6.4.zip && unzip 6.4.zip
13+
RUN wget https://github.com/asanzdiego/markdownslides/archive/6.5.zip && unzip 6.5.zip
1414
WORKDIR /home/markdownslides-master
1515
ADD . /home/markdownslides-master

build.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ function buildRevealSlides() {
328328
sed -i s/\\/h2\>\</\\/h1\>\</g "../export/$NAME-slides$PDF$PLUS.html"
329329

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

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

351351
if [ "$DEFAULT_BUILD" == "REVEAL_SLIDES_PDF" ]; then
352-
cp "../export/$NAME-slides$PLUS.pdf" "../export/$NAME$PLUS.pdf"
352+
info "Convert to default build... ../export/$NAME$PLUS.pdf"
353+
mv "../export/$NAME-slides$PLUS.pdf" "../export/$NAME$PLUS.pdf"
353354
fi
354355
}
355356

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

366367
if [ "$DEFAULT_BUILD" == "POWER_POINT_SLIDES" ]; then
367-
cp "../export/$NAME-slides$PLUS.pptx" "../$NAME.pptx"
368+
info "Convert to default build... ../export/$NAME$PLUS.pptx"
369+
mv "../export/$NAME-slides$PLUS.pptx" "../$NAME.pptx"
368370
fi
369371
}
370372

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

382384
if [ "$DEFAULT_BUILD" == "HTML_BOOK" ]; then
383-
cp "../export/$NAME-book$PLUS.html" "../$NAME.html"
385+
info "Convert to default build... ../export/$NAME$PLUS.html"
386+
mv "../export/$NAME-book$PLUS.html" "../$NAME$PLUS.html"
384387
fi
385388
}
386389

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

397400
if [ "$DEFAULT_BUILD" == "DOCX_BOOK" ]; then
398-
cp "../export/$NAME-book$PLUS.docx" "../$NAME.docx"
401+
info "Convert to default build... ../export/$NAME$PLUS.docx"
402+
mv "../export/$NAME-book$PLUS.docx" "../$NAME$PLUS.docx"
399403
fi
400404
}
401405

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

412416
if [ "$DEFAULT_BUILD" == "EPUB_BOOK" ]; then
413-
cp "../export/$NAME-book$PLUS.epub" "../$NAME.epub"
417+
info "Convert to default build... ../export/$NAME$PLUS.epub"
418+
mv "../export/$NAME-book$PLUS.epub" "../$NAME$PLUS.epub"
414419
fi
415420
}
416421

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

428433
if [ "$DEFAULT_BUILD" == "PDF_BOOK" ]; then
429-
cp "../export/$NAME-book$PLUS.pdf" "../$NAME.pdf"
434+
info "Convert to default build... ../export/$NAME$PLUS.pdf"
435+
mv "../export/$NAME-book$PLUS.pdf" "../$NAME$PLUS.pdf"
430436
fi
431437
}
432438

0 commit comments

Comments
 (0)