Sha256: 1b307a141623383ecd2c2c2dd4e6efb6df5c9937e848b83c6fdace1610318baa

Contents?: true

Size: 1.47 KB

Versions: 18

Compression:

Stored size: 1.47 KB

Contents

#!/bin/sh

echo "Generate HTML Content of MyBlank project"
echo "Styles availables : liberation, asciidoctor, colony, foundation, foundation-lime, foundation-potion, github, golo, iconic, maker, readthedocs, riak, rocket-panda, rubygems"

echo "Create Project"
rm -rf ~hyla/MyBlankProject
hyla new -b -d ~/hyla/MyBlankProject --force
cd ~/hyla/MyBlankProject

echo "Add asciidoc files"
hyla add --t asciidoc --a article --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a book --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a image --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a audio --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a video --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a source --d ~/hyla/MyBlankProject
hyla add --t asciidoc --a table --d ~/hyla/MyBlankProject

echo "Change style in the _config.yaml file"
#ruby -i.bak -pe 'sub(%r{style: liberation},"style: foundation")' _config.yaml
ruby -i.bak -pe 'sub(%r{footer_copyright:},"footer_copyright: Copyright ©2014 Red Hat, Inc.")' _config.yaml
ruby -i.bak -pe 'sub(%r{header_image_path:},"header_image_path: image/rhheader_thin.png")' _config.yaml
ruby -i.bak -pe 'sub(%r{revealjs_theme:},"revealjs_theme: gpe")' _config.yaml

echo "Copy logo"
mkdir -p generated_content/image
cp /Users/chmoulli/hyla/RevealCreatedContent/image/rhheader_thin.png ./generated_content/image/

echo "Generate HTML content"
hyla generate

#echo "Revert style"
#ruby -i.bak -pe 'sub(%r{style: foundation},"style: liberation")' _config.yaml

Version data entries

18 entries across 18 versions & 1 rubygems

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