DocumentNavigation

laika.ast.DocumentNavigation

Represents a document structure with sections that can be turned into a navigation structure.

Attributes

Source
DocumentNavigation.scala
Graph
Supertypes
trait Navigatable
class Object
trait Matchable
class Any
Known subtypes
class Document

Members list

Value members

Abstract methods

def sections: Seq[SectionInfo]

The section structure of this document based on the hierarchy of headers found in the original text markup.

The section structure of this document based on the hierarchy of headers found in the original text markup.

Attributes

Source
DocumentNavigation.scala

The formats this document should be rendered to.

The formats this document should be rendered to.

Attributes

Source
DocumentNavigation.scala
def title: Option[SpanSequence]

The title of this document, obtained from the document structure or from the configuration.

The title of this document, obtained from the document structure or from the configuration. In case no title is defined in either of the two places the result will be None.

Attributes

Source
DocumentNavigation.scala

Concrete methods

Creates the navigation structure for this document up to the specified depth.

Creates the navigation structure for this document up to the specified depth. The returned instance can be used as part of a bigger navigation structure comprising of trees, documents and their sections.

Value parameters

context

captures the navigation depth, reference path and styles for the navigation tree being built

Attributes

Returns

a navigation item that can be used as part of a bigger navigation structure comprising of trees, documents and their sections

Source
DocumentNavigation.scala

Inherited methods

def path: Path

Attributes

Inherited from:
Navigatable
Source
documents.scala

Inherited fields

lazy val name: String

The local name of this navigatable.

The local name of this navigatable.

Attributes

Inherited from:
Navigatable
Source
documents.scala