Commit 4148bda1 authored by Bryan Klein's avatar Bryan Klein

Adding adoc file to content and building HTML and PDF output.

parent fd06ea8d
Pipeline #39738443 passed with stages
in 1 minute and 4 seconds
......@@ -48,6 +48,7 @@ RUN apk add --no-cache --virtual .rubymakedepends \
asciimath \
"asciidoctor-pdf:${ASCIIDOCTOR_PDF_VERSION}" \
asciidoctor-revealjs \
asciidoctor-html5s \
coderay \
epubcheck:3.0.1 \
haml \
......@@ -4,7 +4,7 @@ Setup to demo Hugo site with mixed Markdown and Asciidoc files in /content.
docker build -t hugo-asciidoctor .
docker run -it -p 1313:1313 -v ${pwd}:/documents/ bwklein/hugo-asciidoctor
docker run -it -v ${pwd}:/documents/ bwklein/hugo-asciidoctor
title: "Asciidoctor Demo Post"
date: 2018-12-10T17:21:29Z
:doctype: article
:pdf-page-size: Letter
== Introduction
Thunderhead Engineering makes no warranty, expressed or implied, to users of this software, and accepts no responsibility for its use.
Some Demo Content for Testing.
Link to link:docs/results-user-manual.html[HTML] and link:docs/results-user-manual.pdf[PDF] files.
[quote, Me at 3am on very little sleep and too much coffee']
My blog post is done! and now to send my masterpiece to the world! ....
wait a minute, why is all my text a H1...... I hate myself.
\ No newline at end of file
/usr/bin/asciidoctor_real -r asciidoctor-html5s -b html5s "$@"
\ No newline at end of file
for filename in $(find docs -maxdepth 3 -name '*.adoc'); do asciidoctor --destination-dir=static/docs $filename; done
for filename in $(find docs -maxdepth 3 -name '*.adoc'); do asciidoctor -r asciidoctor-html5s -b html5s --destination-dir=static/docs $filename; done
for filename in $(find docs -maxdepth 3 -name '*.adoc'); do asciidoctor-pdf -r asciidoctor-mathematical --destination-dir=static/docs $filename; done
for filename in $(find content -name '*.adoc');
asciidoctor-pdf -a skip-front-matter -r asciidoctor-mathematical -o $(dirname "$filename")/$(basename $(dirname "$filename")).pdf $filename;
\ No newline at end of file
mv /usr/bin/asciidoctor /usr/bin/asciidoctor_real
cp ./scripts/ /usr/bin/asciidoctor
chmod +x /usr/bin/asciidoctor
\ No newline at end of file
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