Commit 05173b3d authored by Gerson Sunyé's avatar Gerson Sunyé
Browse files

syntax correction

parent b73be8ca
Pipeline #14300 failed
......@@ -2,17 +2,11 @@ image: docker-registry.univ-nantes.fr/sunye-g/docker-asciidoctor-revealjs
cache:
paths:
- reveal.js
- out
- target
before_script:
- apt-get update -qy
- apt install curl -y
- apt install rsync -y
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get install -y -qq nodejs
- node -v
- npm -v
stages:
- build
......@@ -25,12 +19,8 @@ build:
pages:
stage: deploy
script:
- mkdir -p ./target/site/reveal.js
- cp -rvL reveal.js/lib reveal.js/css reveal.js/js reveal.js/plugin ./target/site/reveal.js/
- mv ./target/site ./public
artifacts:
paths:
- public
- target/site
only:
- master
......@@ -5,12 +5,12 @@ mkdir -p $TARGET
bundle exec asciidoctor-revealjs $SOURCE/*.adoc -D $TARGET
rsync -r src/images/ $TARGET/images
cd $TARGET
if test ! -d ./reveal.js; then
git clone -b 3.8.0 --depth 1 https://github.com/hakimel/reveal.js.git # handle as submodule somehow?
rm -rf reveal.js/.git
fi
if test ! -f ./reveal.js/css/theme/stereopticon.css; then
sh -c "$(wget https://gitlab.univ-nantes.fr/bousse-e/stereopticon/raw/master/install-or-update-stereopticon.sh -O - )"
if test ! -d $TARGET/reveal.js; then
cd $TARGET
git clone -b 3.8.0 --depth 1 https://github.com/hakimel/reveal.js.git
rm -rf reveal.js/.git
cd reveal.js
bash -c "$(wget https://gitlab.univ-nantes.fr/bousse-e/stereopticon/raw/master/install-or-update-stereopticon.sh -O - )"
cd ../../..
fi
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