Skip to content

Auto-generate the "Common application properties" appendix #8237

@garyrussell

Description

@garyrussell

Given the size of the properties appendix, consider adding anchors between property sets, to make it easier to navigate to technology-based properties...

  • from the ToC
  • as a hyperlink when answering StackOverflow questions etc

Something like...

--- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
+++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
@@ -13,7 +13,10 @@ your own properties.
 WARNING: This sample file is meant as a guide only. Do **not** copy/paste the entire
 content into your application; rather pick only the properties that you need.
 
+=== Properties
 
+[[appendix-props-core]]
+==== Core Properties
 [source,properties,indent=0,subs="verbatim,attributes,macros"]
 ----
        # ===================================================================

... 

@@ -923,7 +926,12 @@ content into your application; rather pick only the properties that you need.
        spring.kafka.ssl.truststore-location= # Location of the trust store file.
        spring.kafka.ssl.truststore-password= # Store password for the trust store file.
        spring.kafka.template.default-topic= # Default topic to which messages will be sent.
+----
 
+[[appendix-props-rabbit]]
+==== RabbitMQ Properties
+[source,properties,indent=0,subs="verbatim,attributes,macros"]
+----
        # RABBIT ({sc-spring-boot-autoconfigure}/amqp/RabbitProperties.{sc-ext}[RabbitProperties])
        spring.rabbitmq.addresses= # Comma-separated list of addresses to which the client should connect.
        spring.rabbitmq.cache.channel.checkout-timeout= # Number of milliseconds to wait to obtain a channel if the cache size has

...

We then get a ToC entry, as well as an anchor which can be copied to the clipboard.

screen shot 2017-02-08 at 12 28 24 pm

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions