rodnansol / spring-configuration-property-documenter

Tool to document Spring Configuration Properties - Leave us a feedback: https://github.com/rodnansol/spring-configuration-property-documenter/discussions/74
Apache License 2.0
37 stars 5 forks source link

AsciiDoc - Ability to replace the section title to simple title for property groups #25

Closed nandorholozsnyak closed 1 year ago

nandorholozsnyak commented 1 year ago

Is your feature request related to a problem? Please describe. In the current implementation the property groups are started with a section title (===) and if the end user would like to include the final result into another block, this section title might not be rendered properly and to make sure the user has control over it, and this can be replaced.

Describe the solution you'd like Introduce a new attribute with ifdef and ifndef directives to change the final result with that.

Final result

ifndef::property-group-simple-title[=== {{groupName}} +]
ifdef::property-group-simple-title[.*_{{groupName}}_* +]

-- Properties --

File that would include the final file:

:property-group-simple-title:
[%collapsible%]
====
include::property-docs.adoc[]
====

.Configuration properties
:property-group-simple-title:
====
include::property-docs.adoc[]
====