feat: asciidoctor-diagram support #194
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enables
asciidoctor-diagram
support for generating images as defined inline in the source file. The resulting images are captured afterwards in a new task namedcollect-images
, to stick to the basic content-task structure for the base asciidoctor task.Previous code was refactored to have stronger defaults for options and metadata handling.
Based on the previous PR's #191 and #193
I'm very interested to hear your comments on this work:
collect-images
task the right way to collect images after thecontent-task
function?asciidoctor*
now has a global switch ondiagram
to determine whether or notasciidoctor-diagram
is enabled. Is this correct?permalink
task so the relative URL remains the same? Another way would be to fix this upfront, by giving each post it's own directory or by changing the relative URL namedimagesdir
in asciidoctor terminology.At the moment of writing you can observe the potential output at http://site.nicorikken.eu/posts/2017-08-14-testpost.html which is based on the source https://github.com/nicorikken/nicorikken.github.io/tree/perun which uses the code of this PR.