Interface StylesheetWriter
public interface StylesheetWriter
If a
SyntaxHighlighterAdapter also implements this interface it will be called while rendering
to write a stylesheet to disc.
This only happens if the output is written to file and the attributes :linkcss
and :copycss are set.
This API is experimental and might change in an incompatible way in a minor version update!
-
Method Summary
Modifier and TypeMethodDescriptionbooleanHas to returntrueif Asciidoctor should callwriteStylesheet(Document, File).voidwriteStylesheet(Document doc, File toDir) Allows to write additional stylesheets to disk while rendering a document.
-
Method Details
-
isWriteStylesheet
Has to returntrueif Asciidoctor should callwriteStylesheet(Document, File).- Parameters:
doc- The current document that is rendered.- Returns:
trueifwriteStylesheet(Document, File)should be called.
-
writeStylesheet
Allows to write additional stylesheets to disk while rendering a document. References to this stylesheet should be added bySyntaxHighlighterAdapter.getDocinfo(LocationType, Document, Map).- Parameters:
doc- The current document to be rendered.toDir- The file representing the absolute path to the directory where the stylesheet should be written.
-