Skip to content

Commit

Permalink
Add @ConfigDocEnumValue and @ConfigDocDefault to writing-extensions g…
Browse files Browse the repository at this point in the history
…uidee
  • Loading branch information
ia3andy authored and gsmet committed Sep 19, 2023
1 parent 5a3a825 commit ea3af2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/main/asciidoc/writing-extensions.adoc
Expand Up @@ -1316,6 +1316,11 @@ public interface SomeConfig {
}
----
<1> This will generate a configuration map key named `quarkus.some."cache-name"` instead of `quarkus.some."namespace"`.
It is possible to write a textual explanation for the documentation default value, this is useful when it is generated: `@ConfigDocDefault("explain how this is generated")`.

Check warning on line 1320 in docs/src/main/asciidoc/writing-extensions.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Spelling] Use correct American English spelling. Did you really mean 'enum'? Raw Output: {"message": "[Quarkus.Spelling] Use correct American English spelling. Did you really mean 'enum'?", "location": {"path": "docs/src/main/asciidoc/writing-extensions.adoc", "range": {"start": {"line": 1320, "column": 151}}}, "severity": "WARNING"}
`@ConfigDocEnumValue` gives a way to explicitly customize the string displayed in the documentation when listing accepted values for an enum.
====

===== Writing section documentation
Expand Down

0 comments on commit ea3af2f

Please sign in to comment.