Skip to content

Commit e3dbe5e

Browse files
committed
docs(plugins): Document how class docs are used as plugin descriptions
Also document the requirements to ensure descriptions are nicely rendered on the website. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@doubleopen.io>
1 parent 17be778 commit e3dbe5e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

plugins/api/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ class ExampleAdvisor(override val descriptor: PluginDescriptor, val config: Exam
7575
}
7676
```
7777

78+
The KDoc of the plugin class is used as the description of the plugin when generating the `PluginDescriptor`.
79+
Therefore, it should be written with the intention to be read by users of the plugin.
80+
For example, for package managers, it should document requirements and limitations of the plugin, helping users to successfully analyze their projects.
81+
As the description is also used for the website, certain limitations apply:
82+
83+
* It should not use reference-style links (like `[some website][1]`).
84+
* It should not use footnotes (like `[^1]`).
85+
* It should only use headings of level 3 or higher (like `### Heading`).
86+
* KDoc symbol references (like `[SomeClass]`) are replaced with inline-code blocks.
87+
7888
### Plugin Configuration Class
7989

8090
The configuration class must be a data class with a single constructor that takes all configuration options as arguments.

0 commit comments

Comments
 (0)