Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c4938055
Commit
c4938055
authored
Apr 30, 2019
by
Brian Clozel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Separate compound properties in appendices"
Closes gh-16480
parent
5b63b807
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
pom.xml
spring-boot-project/spring-boot-parent/pom.xml
+1
-1
AsciidocBuilder.java
...ringframework/boot/configurationdocs/AsciidocBuilder.java
+12
-0
CompoundConfigurationTableEntry.java
...ot/configurationdocs/CompoundConfigurationTableEntry.java
+3
-3
No files found.
spring-boot-project/spring-boot-parent/pom.xml
View file @
c4938055
...
...
@@ -29,7 +29,7 @@
<testcontainers.version>
1.10.6
</testcontainers.version>
<testng.version>
6.14.3
</testng.version>
<dependency-management-plugin.version>
1.0.6.RELEASE
</dependency-management-plugin.version>
<spring-doc-resources.version>
0.1.
0
.RELEASE
</spring-doc-resources.version>
<spring-doc-resources.version>
0.1.
1
.RELEASE
</spring-doc-resources.version>
</properties>
<scm>
<url>
https://github.com/spring-projects/spring-boot
</url>
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/AsciidocBuilder.java
View file @
c4938055
...
...
@@ -31,6 +31,18 @@ class AsciidocBuilder {
this
.
content
=
new
StringBuilder
();
}
public
AsciidocBuilder
appendKey
(
Object
...
items
)
{
for
(
Object
item
:
items
)
{
append
(
"`+"
,
item
,
"+` +"
,
NEWLINE
);
}
return
this
;
}
public
AsciidocBuilder
newLine
()
{
append
(
NEWLINE
);
return
this
;
}
public
AsciidocBuilder
appendln
(
Object
...
items
)
{
append
(
items
);
append
(
NEWLINE
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/CompoundConfigurationTableEntry.java
View file @
c4938055
...
...
@@ -47,9 +47,9 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
@Override
public
void
write
(
AsciidocBuilder
builder
)
{
builder
.
append
(
"|"
);
this
.
configurationKeys
.
forEach
(
(
key
)
->
builder
.
appendln
(
"`+"
,
key
,
"+` +"
)
);
builder
.
appendln
(
""
).
appendln
(
"|"
).
append
(
"|+++"
)
.
append
(
this
.
description
).
appendln
(
"+++"
);
this
.
configurationKeys
.
forEach
(
builder:
:
appendKey
);
builder
.
newLine
().
appendln
(
"|"
);
builder
.
appendln
(
"|+++"
,
this
.
description
,
"+++"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment