Skip to content

Commit 171f98e

Browse files
authored
docs: fix some layout in plugins (#4041)
1 parent a4236a7 commit 171f98e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/usage/plugins/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ InitPlugin
2121
Init plugins can define dependencies, add route handlers, configure middleware, and much more!
2222

2323
Implementations of these plugins must define a single method:
24-
2524
:meth:`on_app_init(self, app_config: AppConfig) -> AppConfig: <litestar.plugins.InitPlugin.on_app_init>`
26-
----------------------------------------------------------------------------------------------------------------
2725

2826
The method accepts and must return an :class:`AppConfig <litestar.config.app.AppConfig>` instance, which can be modified
2927
and is later used to instantiate the application.
@@ -57,14 +55,12 @@ that are otherwise unsupported by the framework.
5755

5856
Implementations of these plugins must define the following methods.
5957

60-
:meth:`supports_type(self, field_definition: FieldDefinition) -> bool: <litestar.plugins.SerializationPluginProtocol>`
61-
----------------------------------------------------------------------------------------------------------------------
58+
1. :meth:`supports_type(self, field_definition: FieldDefinition) -> bool: <litestar.plugins.SerializationPluginProtocol>`
6259

6360
The method takes a :class:`FieldDefinition <litestar.typing.FieldDefinition>` instance as an argument and returns a :class:`bool`
6461
indicating whether the plugin supports serialization for that type.
6562

66-
:meth:`create_dto_for_type(self, field_definition: FieldDefinition) -> type[AbstractDTO]: <litestar.plugins.SerializationPluginProtocol.create_dto_for_type>`
67-
--------------------------------------------------------------------------------------------------------------------------------------------------------------
63+
2. :meth:`create_dto_for_type(self, field_definition: FieldDefinition) -> type[AbstractDTO]: <litestar.plugins.SerializationPluginProtocol.create_dto_for_type>`
6864

6965
This method accepts a :class:`FieldDefinition <litestar.typing.FieldDefinition>` instance as an argument and must return a
7066
:class:`AbstractDTO <litestar.dto.base_dto.AbstractDTO>` implementation that can be used to serialize and deserialize

0 commit comments

Comments
 (0)