Interface StylesheetWriter
-
public interface StylesheetWriterIf aSyntaxHighlighterAdapteralso 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
:linkcssand:copycssare set.This API is experimental and might change in an incompatible way in a minor version update!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisWriteStylesheet(Document doc)Has to returntrueif Asciidoctor should callwriteStylesheet(Document, File).voidwriteStylesheet(Document doc, java.io.File toDir)Allows to write additional stylesheets to disk while rendering a document.
-
-
-
Method Detail
-
isWriteStylesheet
boolean isWriteStylesheet(Document doc)
Has to returntrueif Asciidoctor should callwriteStylesheet(Document, File).- Parameters:
doc- The current document that is rendered.- Returns:
trueifwriteStylesheet(Document, File)should be called.
-
writeStylesheet
void writeStylesheet(Document doc, java.io.File toDir)
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.
-
-