dinodoc.generator
Generator
The Generator protocol defines an abstraction for a source that generates documentation and resolves links to entities.
Lifecycle:
prepare-indexis called once at the beginning.The generator can parse or analyze the source at this stage to be able to serve subsequent
resolve-linkcalls.resolve-linkcan be called zero or many times.generateis called once at the end.The generator writes its output to a given location. The generator can rely on the index to generate the output.
protocol
generate
(generate _ opts)
Passed options:
:output-path- location where output should be written
protocol
prepare-index
(prepare-index _)
Prepare the index for subsequent resolve-link calls.
protocol
resolve-link
(resolve-link _ target)
Return a relative link given a logical target or nil if there is no match.
protocol