ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
448 stars 92 forks source link

Added stylesheet does not work with custom template #503

Open shahryareiv opened 3 years ago

shahryareiv commented 3 years ago

This line

npx asciidoctor-web-pdf myfile.adoc.txt   -a stylesdir="template"  -a stylesheet="+my-style.css" --template-require "./template/my-template.js"

failes with "Failed to load resource: net::ERR_FILE_NOT_FOUND ", but works fine if one removes the --template-require. It seems the implementation of this feature in document-converted is replaced with a custom template.

ggrossetie commented 3 years ago

That's correct, this feature is only supported in the built-in converter. As mentioned in https://github.com/Mogztter/asciidoctor-web-pdf/issues/502, examples do not provide full-blown converters. They only showcase a specific set of features/capabilities.

At one point in the future, we might promote a converter from examples but I feel like it would significantly increase the maintenance cost. So for now, I think we should focus on one converter.