Sha256: 98290fa7e7c20833036fecb1e2c725adcc21de8aba54c41de83b351de6fcf86d

Contents?: true

Size: 973 Bytes

Versions: 18

Compression:

Stored size: 973 Bytes

Contents

#!/bin/sh

source remove_temp_directories.sh

echo "Create a MyPdfProject"
cd ~/hyla
hyla new --blank -d MyPdfProject --force
cd MyPdfProject

echo "Create one Asciidoc file from sample (book)"

hyla add -a book --t asciidoc -d .

echo "Generate HTML content using foundation stylesheet"

hyla generate --style foundation

echo "We change the rendering from adoc2html to html2pdf"

ruby -i.bak -pe 'sub(%r{rendering: adoc2html},"rendering: html2pdf")' _config.yaml

echo "Adapt source directory & destination directory"

ruby -i.bak -pe 'sub(%r{source: .},"source: ./generated_content")' _config.yaml
ruby -i.bak -pe 'sub(%r{destination: generated_content},"destination: ./generated_content/pdf")' _config.yaml

echo "Generate the PDF file for the image and book"

hyla generate -f asciidoc_book.html
#hyla generate -f asciidoc_image.html

echo "Result can be opened and viewed"

open generated_content/pdf/asciidoc_book.pdf
#open generated_content/pdf/asciidoc_image.pdf

Version data entries

18 entries across 18 versions & 1 rubygems

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