-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-revealjs
More file actions
executable file
·29 lines (23 loc) · 971 Bytes
/
install-revealjs
File metadata and controls
executable file
·29 lines (23 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# or another version,
# or branch name (although not recommended as might break suddenly)
reveal_version=${1:-'5.1.0'}
echo "Installing reveal.js"
wget -q --show-progress https://github.com/hakimel/reveal.js/archive/${reveal_version}.tar.gz
# Path used by gitlab pages is "public"
mkdir revealjs
tar -xf "${reveal_version}.tar.gz" -C revealjs --strip-components 1
# dist and plugin dirs are the only ones used in production
mv -n revealjs/dist static/revealjs/dist
mv -n revealjs/plugin static/revealjs/plugin
echo "installing plugins"
wget -q --show-progress https://raw.githubusercontent.com/denniskniep/reveal.js-plugin-spotlight/master/spotlight.js
mkdir static/revealjs/plugin/spotlight
mv spotlight.js static/revealjs/plugin/spotlight/
# tidy up source files not referred to
rm -rf revealjs
rm -f ${reveal_version}.tar.gz
echo "reveal.js Done"
echo "installing custom CSS"
cp -v static/revealjs/theme/*.css static/revealjs/dist/theme/
echo "Done"