Sha256: 8d0c115f09fe20250b41b81e91aa5ab19771d34ad9c71726f7ef63084cc92995

Contents?: true

Size: 1.18 KB

Versions: 18

Compression:

Stored size: 1.18 KB

Contents

#!/bin/sh

echo "Remove MyRevealJS"
rm -rf ~/hyla/MyRevealSlideShow
cd ~/hyla

echo "Create a blank project"
hyla new --blank -d MyRevealSlideShow

echo "Create from slideshow template a RevealJS  file"
hyla add --t slideshow -a revealjs -d MyRevealSlideShow

echo "Generate HTML5 Slideshow content"
cd MyRevealSlideShow

echo "Change theme to GPE, backend to reveal"
ruby -i.bak -pe 'sub(%r{revealjs_theme: default},"revealjs_theme: gpe")' _config.yaml
ruby -i.bak -pe 'sub(%r{backend: html5},"backend: revealjs")' _config.yaml
ruby -i.bak -pe 'sub(%r{rendering: adoc2html},"rendering: adoc2html")' _config.yaml

hyla generate

echo "Copy logo"
cp -r /Users/chmoulli/hyla/RevealCreatedContent/image ./generated_content/image

echo "Open the slideshow using your web browser"
# open http://localhost:4000/hyla/slideshow_revealjs.html &

echo "Start web server"
# hyla serve -P 4000 -H localhost -b /hyla/ -d generated_content/

echo "Change theme to GPE"
#ruby -i.bak -pe 'sub(%r{revealjs_theme: gpe},"revealjs_theme: default")' _config.yaml
#ruby -i.bak -pe 'sub(%r{backend: revealjs},"backend: html5")' _config.yaml
#ruby -i.bak -pe 'sub(%r{rendering: adoc2html},"rendering: adoc2html")' _config.yaml

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hyla-1.0.9 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.9.pre.3 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.9.pre.2 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.9.pre.1 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.8 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.9 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.8 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.7 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.6 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.5 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.3 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.2 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.7.pre.1 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.6 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.5 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.5.pre.1 documentation/scripts/generate_slideshow_revealjs_config.sh
hyla-1.0.4 documentation/scripts/generate_slideshow_revealjs_config.sh