mrdocs::installGenerator

Install a custom generator.

Synopsis

Declared in <mrdocs/Generator.hpp>

Expected<void>
installGenerator(std::unique_ptr<Generator> G);

Description

This function registers a generator with the global generator registry, making it available for use.

Plugins can use this function to register custom generators.

Thread Safety

This function is thread-safe and may be called concurrently from multiple threads.

Return Value

An error if a generator with the same id already exists.

Parameters

NameDescription
GThe generator to install. Ownership is transferred to the registry.