cm4-doc/README.adoc

17 lines
867 B
Plaintext
Raw Permalink Normal View History

2023-06-19 01:17:31 +08:00
= Asciidoctor Maven Plugin: AsciiDoc to PDF Book Example
An example project that demonstrates how to convert AsciiDoc to PDF using Asciidoctor PDF with the Asciidoctor Maven plugin.
This example produces a book and make use of a custom https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.6.x/docs/theming-guide.adoc[Asciidoctor PDF theme] (defined in `src/theme`).
The same document is rendered twice:
* Without the theme configuration, output is `target/generated-docs-default-theme/example-manual.pdf`
* With the theme configuration, output is `target/generated-docs-custom-theme/example-manual.pdf`
== Usage
Convert the AsciiDoc to PDF using Asciidoctor PDF by invoking the `process-resources` goal (configured as the default goal):
$ mvn
Open the file _target/generated-docs-custom-theme/example-manual.pdf_ in your PDF viewer to see the generated PDF.