Polish docs.gradle
This commit is contained in:
parent
972337e8f9
commit
3f9359aa83
|
@ -111,24 +111,25 @@ asciidoctor {
|
||||||
logDocuments = true
|
logDocuments = true
|
||||||
backends = ["html5"]
|
backends = ["html5"]
|
||||||
// only ouput PDF documentation for non-SNAPSHOT builds
|
// only ouput PDF documentation for non-SNAPSHOT builds
|
||||||
if(!project.getVersion().toString().contains("BUILD-SNAPSHOT")) {
|
if (!project.getVersion().toString().contains("BUILD-SNAPSHOT")) {
|
||||||
backends += "pdf"
|
backends += "pdf"
|
||||||
}
|
}
|
||||||
options doctype: 'book', eruby: 'erubis'
|
options doctype: 'book', eruby: 'erubis'
|
||||||
attributes 'icons': 'font',
|
attributes([
|
||||||
'idprefix': '',
|
icons: 'font',
|
||||||
'idseparator': '-',
|
idprefix: '',
|
||||||
'docinfo': 'shared',
|
idseparator: '-',
|
||||||
'revnumber': project.version,
|
docinfo: 'shared',
|
||||||
'sectanchors': '',
|
revnumber: project.version,
|
||||||
'sectnums': '',
|
sectanchors: '',
|
||||||
'source-highlighter=highlight.js',
|
sectnums: '',
|
||||||
'highlightjsdir=js/highlight',
|
'source-highlighter': 'highlight.js',
|
||||||
'highlightjs-theme=github',
|
highlightjsdir: 'js/highlight',
|
||||||
stylesdir: "css/",
|
'highlightjs-theme': 'github',
|
||||||
|
stylesdir: 'css/',
|
||||||
stylesheet: 'stylesheet.css',
|
stylesheet: 'stylesheet.css',
|
||||||
'spring-version': project.version
|
'spring-version': project.version
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
asciidoctor.dependsOn extractDocResources
|
asciidoctor.dependsOn extractDocResources
|
||||||
|
@ -196,7 +197,6 @@ task schemaZip(type: Zip) {
|
||||||
* docs, schemas, jars, source jars, javadoc jars
|
* docs, schemas, jars, source jars, javadoc jars
|
||||||
*/
|
*/
|
||||||
task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) {
|
task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) {
|
||||||
|
|
||||||
group = "Distribution"
|
group = "Distribution"
|
||||||
archiveBaseName.set("spring-framework")
|
archiveBaseName.set("spring-framework")
|
||||||
archiveClassifier.set("dist")
|
archiveClassifier.set("dist")
|
||||||
|
|
Loading…
Reference in New Issue