Install a custom generator.
Declared in <mrdocs/Generator.hpp>
Expected<void>
installGenerator(std::unique_ptr<Generator> G);
This function registers a generator with the global generator registry, making it available for use.
Plugins can use this function to register custom generators.
This function is thread-safe and may be called concurrently from multiple threads.
An error if a generator with the same id already exists.
| Name | Description |
|---|---|
| G | The generator to install. Ownership is transferred to the registry. |