Guides

ParsePagesListener
in package

FinalYes

Parses and compiles standalone pages after the main documentation has been parsed.

Triggered by PostParseProcess, this listener:

  1. Discovers all source files in the configured pages source directory.
  2. Parses each file via ParseFileCommandDocumentNode.
  3. Promotes each DocumentNode to a PageNode, extracting any PageDestinationNode to override the default output path.
  4. Wraps each PageNode's body children in a temporary DocumentNode and runs the standard compiler via CompileDocumentsCommand against the shared ProjectNode, so that cross-references inside pages are resolved correctly.
  5. Stores each compiled PageNode in the PagesRegistry for later rendering by RenderPagesListener.

Table of Contents

Properties

$commandBus  : CommandBus
$fileCollector  : FileCollector
$logger  : LoggerInterface
$registry  : PagesRegistry
$sourceDirectory  : string

Methods

__construct()  : mixed
__invoke()  : void

Properties

Methods

On this page

Search results