Commit fe4da112 authored by Gerson Sunyé's avatar Gerson Sunyé

New compilation script

parent 9911a070
Pipeline #15569 passed with stages
in 1 minute and 38 seconds
#!/bin/bash
SOURCE="src/slides/"
#!/bin/sh
SOURCE="src/asciidoc/"
TARGET="target/site"
REVEALJS_DIR="$TARGET/reveal.js"
mkdir -p $TARGET
bundle exec asciidoctor-revealjs $SOURCE/*.adoc -R $SOURCE -D $TARGET
rsync -r src/images/ $TARGET/images
if test ! -d $TARGET/reveal.js; then
CURDIR=$pwd
cd $TARGET
git clone -b 3.8.0 --depth 1 https://github.com/hakimel/reveal.js.git
rm -rf reveal.js/.git
wget https://github.com/highlightjs/highlight.js/archive/9.18.0.tar.gz
tar cvfz 9.18.0.tar.gz
cd reveal.js
wget https://gitlab.univ-nantes.fr/bousse-e/stereopticon/raw/master/install-or-update-stereopticon.sh
bash install-or-update-stereopticon.sh
cd $CURDIR
if test ! -d $REVEALJS_DIR ; then
wget --directory-prefix=$TARGET https://github.com/highlightjs/highlightjs-mde-languages/releases/download/0.1.0/mde-languages.min.js
git clone -b 3.9.2 --depth 1 https://github.com/hakimel/reveal.js.git $REVEALJS_DIR
cd $REVEALJS_DIR; curl -sL https://gitlab.univ-nantes.fr/bousse-e/stereopticon/raw/master/install-or-update-stereopticon.sh | bash -
cd -
fi
bundle exec asciidoctor-revealjs $SOURCE/*.adoc -r asciidoctor-diagram -D $TARGET
rsync -r src/images/ $TARGET/images
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment