Generated antora.yml
This commit is contained in:
@@ -3,26 +3,6 @@ title: Spring Session
|
||||
version: ~
|
||||
display_version: 2.6
|
||||
start_page: ROOT:index.adoc
|
||||
asciidoc:
|
||||
attributes:
|
||||
page-pagination: true
|
||||
idprefix: ''
|
||||
idseparator: '-'
|
||||
download-url: "https://github.com/spring-projects/spring-session/archive/main.zip"
|
||||
gh-samples-url: "https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/"
|
||||
samples-dir: "example$spring-session-samples/"
|
||||
session-jdbc-main-resources-dir: "example$session-jdbc-main-resources-dir/"
|
||||
docs-test-dir: "example$java/"
|
||||
websocketdoc-test-dir: 'example$java/docs/websocket/'
|
||||
docs-test-resources-dir: "example$resources/"
|
||||
indexdoc-tests: "example$java/docs/IndexDocTests.java"
|
||||
lettuce-version: 6.1.2.RELEASE
|
||||
hazelcast-version: 3.12.12
|
||||
spring-boot-version: 2.4.5
|
||||
spring-data-redis-version: 2.5.1
|
||||
spring-framework-version: 5.3.7
|
||||
spring-security-version: 5.5.0
|
||||
spring-session-version: 2.6.0-SNAPSHOT
|
||||
|
||||
|
||||
nav:
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
* xref:whats-new.adoc[What's New]
|
||||
* xref:samples.adoc[Samples & Guides (Start Here)]
|
||||
** Boot Samples
|
||||
* xref:guides/boot-redis.adoc[HttpSession with Redis]
|
||||
* xref:guides/boot-jdbc.adoc[HttpSession with JDBC]
|
||||
* {gh-samples-url}spring-session-sample-boot-hazelcast[HttpSession with Hazelcast]
|
||||
* xref:guides/boot-findbyusername.adoc[Find by Username]
|
||||
* xref:guides/boot-websocket.adoc[WebSockets]
|
||||
* {gh-samples-url}spring-session-sample-boot-webflux[WebFlux]
|
||||
** Java Configuration
|
||||
** XML Configuration
|
||||
* xref:modules.adoc[Modules]
|
||||
* xref:http-session.adoc[HttpSession Integration]
|
||||
* xref:web-socket.adoc[WebSocket Integration]
|
||||
|
||||
@@ -36,6 +36,44 @@ sourceSets {
|
||||
|
||||
def versions = dependencyManagement.managedVersions
|
||||
|
||||
|
||||
tasks.register("generateAntora") {
|
||||
group = "Documentation"
|
||||
description = "Generates the antora.yml for dynamic properties"
|
||||
doLast {
|
||||
def dollar = '$'
|
||||
def ghTag = snapshotBuild ? 'main' : project.version
|
||||
def ghUrl = "https://github.com/spring-projects/spring-session/tree/$ghTag"
|
||||
def outputFile = new File("$buildDir/generateAntora/antora.yml")
|
||||
outputFile.getParentFile().mkdirs()
|
||||
outputFile.createNewFile()
|
||||
outputFile.setText("""name: ''
|
||||
title: Spring Session
|
||||
version: ~
|
||||
display_version: 2.6
|
||||
start_page: ROOT:index.adoc
|
||||
asciidoc:
|
||||
attributes:
|
||||
download-url: "https://github.com/spring-projects/spring-session/archive/${ghTag}.zip"
|
||||
gh-samples-url: "$ghUrl/spring-session-samples/"
|
||||
samples-dir: "example${dollar}spring-session-samples/"
|
||||
session-jdbc-main-resources-dir: "example${dollar}session-jdbc-main-resources-dir/"
|
||||
docs-test-dir: "example${dollar}java/"
|
||||
websocketdoc-test-dir: 'example${dollar}java/docs/websocket/'
|
||||
docs-test-resources-dir: "example${dollar}resources/"
|
||||
indexdoc-tests: "example${dollar}java/docs/IndexDocTests.java"
|
||||
spring-session-version: ${project.version}
|
||||
version-milestone: $milestoneBuild
|
||||
version-release: $releaseBuild
|
||||
version-snapshot: $snapshotBuild
|
||||
spring-boot-version: ${project.springBootVersion}
|
||||
spring-data-redis-version: ${versions['org.springframework.data:spring-data-redis']}
|
||||
spring-framework-version: ${versions['org.springframework:spring-core']}
|
||||
spring-security-version: ${versions['org.springframework.security:spring-security-core']}
|
||||
""")
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
clearSources()
|
||||
sources {
|
||||
@@ -77,8 +115,6 @@ asciidoctorj {
|
||||
'docinfodir@': "."
|
||||
}
|
||||
|
||||
println asciidoctorj.attributes
|
||||
|
||||
repositories {
|
||||
maven { url "https://repo.spring.io/release" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user