Configuring builders

Discover builders by entry point

バージョン 1.6 で追加.

builder extensions can be discovered by means of entry points so that they do not have to be listed in the extensions configuration value.

Builder extensions should define an entry point in the group. The name of the entry point needs to match your builder's name attribute, which is the name passed to the sphinx-build -b option. The entry point value should equal the dotted name of the extension module. Here is an example of how an entry point for 'mybuilder' can be defined in the extension's

    # ...
        '': [
            'mybuilder = my.extension.module',

この場合でも、拡張の setup() 関数の add_builder() を使用してビルダーを登録する必要があることに注意してください。