class Asciidoctor::Document

Attributes

catalog[W]

Allow writing to the :catalog attribute in order to duplicate refs list to new pages

mp_root[RW]

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.

mplevel[RW]

Allow the section type to be saved (for when a Section becomes a Document)

processed[RW]

Allow the current Document to be marked as processed by this extension

sectnum[W]

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

sections?() click to toggle source

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
sectnum(delimiter = nil, append = nil) click to toggle source

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