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
25a2b8e3
Commit
25a2b8e3
authored
Jun 10, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve formatting of generated doc tables
parent
aaa7e7d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
generateAutoConfigurationClassTables.groovy
...c/main/groovy/generateAutoConfigurationClassTables.groovy
+4
-4
dependencyVersions.xsl
spring-boot-docs/src/main/xslt/dependencyVersions.xsl
+9
-6
No files found.
spring-boot-docs/src/main/groovy/generateAutoConfigurationClassTables.groovy
View file @
25a2b8e3
...
@@ -10,12 +10,12 @@ def processModule(File moduleDir, File generatedResourcesDir) {
...
@@ -10,12 +10,12 @@ def processModule(File moduleDir, File generatedResourcesDir) {
def
generateAutoConfigurationClassTable
(
String
module
,
File
factories
,
PrintWriter
writer
)
{
def
generateAutoConfigurationClassTable
(
String
module
,
File
factories
,
PrintWriter
writer
)
{
writer
.
println
'[cols="4,1"]'
writer
.
println
'[cols="4,1"]'
writer
.
println
'|==='
writer
.
println
'|==='
writer
.
println
'|Configuration Class | Links'
writer
.
println
'|
Configuration Class | Links'
getAutoConfigurationClasses
(
factories
).
each
{
getAutoConfigurationClasses
(
factories
).
each
{
writer
.
println
''
writer
.
println
''
writer
.
println
"|
{github-code}/$module/src/main/java/$it.path.{sc-ext}[$it.name
]"
writer
.
println
"|
{github-code}/$module/src/main/java/$it.path.{sc-ext}[`$it.name`
]"
writer
.
println
"|{dc-root}/$it.path.{dc-ext}[javadoc]"
writer
.
println
"|
{dc-root}/$it.path.{dc-ext}[javadoc]"
}
}
writer
.
println
'|==='
writer
.
println
'|==='
...
@@ -38,4 +38,4 @@ def getAutoConfigurationClasses(File factories) {
...
@@ -38,4 +38,4 @@ def getAutoConfigurationClasses(File factories) {
def
autoConfigDir
=
new
File
(
project
.
build
.
directory
,
'auto-config'
)
def
autoConfigDir
=
new
File
(
project
.
build
.
directory
,
'auto-config'
)
def
generatedResourcesDir
=
new
File
(
project
.
build
.
directory
,
'generated-resources'
)
def
generatedResourcesDir
=
new
File
(
project
.
build
.
directory
,
'generated-resources'
)
autoConfigDir
.
eachDir
{
processModule
(
it
,
generatedResourcesDir
)
}
autoConfigDir
.
eachDir
{
processModule
(
it
,
generatedResourcesDir
)
}
\ No newline at end of file
spring-boot-docs/src/main/xslt/dependencyVersions.xsl
View file @
25a2b8e3
...
@@ -6,20 +6,23 @@
...
@@ -6,20 +6,23 @@
<xsl:output
method=
"text"
encoding=
"UTF-8"
indent=
"no"
/>
<xsl:output
method=
"text"
encoding=
"UTF-8"
indent=
"no"
/>
<xsl:template
match=
"/"
>
<xsl:template
match=
"/"
>
<xsl:text>
|===
===============================


</xsl:text>
<xsl:text>
|===


</xsl:text>
<xsl:text>
| Group ID | Artifact ID | Version


</xsl:text>
<xsl:text>
| Group ID | Artifact ID | Version


</xsl:text>
<xsl:for-each
select=
"//mvn:dependency"
>
<xsl:for-each
select=
"//mvn:dependency"
>
<xsl:sort
select=
"mvn:groupId"
/>
<xsl:sort
select=
"mvn:groupId"
/>
<xsl:sort
select=
"mvn:artifactId"
/>
<xsl:sort
select=
"mvn:artifactId"
/>
<xsl:text>
|
</xsl:text>
<xsl:text>


</xsl:text>
<xsl:text>
| `
</xsl:text>
<xsl:copy-of
select=
"mvn:groupId"
/>
<xsl:copy-of
select=
"mvn:groupId"
/>
<xsl:text>
|
</xsl:text>
<xsl:text>
`


</xsl:text>
<xsl:text>
| `
</xsl:text>
<xsl:copy-of
select=
"mvn:artifactId"
/>
<xsl:copy-of
select=
"mvn:artifactId"
/>
<xsl:text>
|
</xsl:text>
<xsl:text>
`


</xsl:text>
<xsl:text>
|
</xsl:text>
<xsl:copy-of
select=
"mvn:version"
/>
<xsl:copy-of
select=
"mvn:version"
/>
<xsl:text>


</xsl:text>
<xsl:text>


</xsl:text>
</xsl:for-each>
</xsl:for-each>
<xsl:text>
|===
===============================
</xsl:text>
<xsl:text>
|===
</xsl:text>
</xsl:template>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
\ No newline at end of file
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