Skip to content

Example of using Asciidoctor, using asciidoctor-diagram to generate some images, and generating HTML and PDF

License

Notifications You must be signed in to change notification settings

andyjefferson/asciidoctor-pdf-diagram-combo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asciidoctor-pdf-diagram-combo

Example of using Asciidoctor generating PDF whilst using asciidoctor-diagram to generate some PNGs of images.

I'm wanting to use Asciidoctor to generate a site in HTML, and also PDF, and using Maven.

This works fine until I want to generate diagrams using the asciidoctor-diagram plugin. The diagrams are created in PNG form in the output directory. The PDF plugin doesn't know to look there.

The HTML site is still generated fine with the generated images for the diagrams. The PDF site always spits out messages like

asciidoctor: WARNING: image to embed not found or not readable: /home/andy/work/test/asciidoctor-pdf-diagram-combo/src/main/asciidoc/sub/relation_1_1_uni_db.png

since the PDF plugin is looking in the source tree only for images, and the generated image is in the target/site area.

I don't want to generate the diagram images in the source tree (since don't want them checked in).

See also this "issue" where there is some discussion of the problem asciidoctor/asciidoctor-pdf#495

About

Example of using Asciidoctor, using asciidoctor-diagram to generate some images, and generating HTML and PDF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published