public interface StylesheetWriter
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!
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWriteStylesheet(Document doc)
Has to return
true if Asciidoctor should call writeStylesheet(Document, File). |
void |
writeStylesheet(Document doc,
java.io.File toDir)
Allows to write additional stylesheets to disk while rendering a document.
|
boolean isWriteStylesheet(Document doc)
true if Asciidoctor should call writeStylesheet(Document, File).doc - The current document that is rendered.true if writeStylesheet(Document, File) should be called.void writeStylesheet(Document doc, java.io.File toDir)
SyntaxHighlighterAdapter.getDocinfo(LocationType, Document, Map).doc - The current document to be rendered.toDir - The file representing the absolute path to the directory where the stylesheet should be written.