class Asciidoctor::Document
Attributes
Allow writing to the :catalog attribute in order to duplicate refs list to new pages
A pointer to the original converter (first converter instantiated to convert the original document). As we create additional documents ourselves, AsciiDoctor will instantiate additional instances of MultipageHtml5Converter
for each created document. These instances need to share state, so they can use the original converter instance for that purpose.
Allow the section type to be saved (for when a Section becomes a Document
)
Allow the current Document
to be marked as processed by this extension
Allow saving of section number for use later. This is necessary for when a branch or leaf Section becomes a Document
during chunking and ancestor nodes are no longer accessible.
Public Instance Methods
Override the AbstractBlock sections?() check to enable the Table Of Contents. This extension may generate short pages that would normally have no need for a TOC. However, we override the Html5Converter outline() in order to generate a custom TOC for each page with entries that span the entire document.
# File lib/asciidoctor-multipage.rb, line 68 def sections? return true end
Return the saved section number for this Document
object (which was originally a Section)
# File lib/asciidoctor-multipage.rb, line 74 def sectnum(delimiter = nil, append = nil) @sectnum end