File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
local-build-plugins/src/main/groovy Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ configurations {
1111}
1212
1313dependencies {
14- themezip ' org.hibernate.infra:hibernate-asciidoctor-theme:6.0.2 .Final@zip'
14+ themezip ' org.hibernate.infra:hibernate-asciidoctor-theme:6.1.1 .Final@zip'
1515}
1616
1717tasks. register(' unpackTheme' , Copy ) {
@@ -44,8 +44,9 @@ tasks.withType(Javadoc).configureEach {
4444 windowTitle = " Hibernate Javadocs ($project . name )"
4545 docTitle = " Hibernate Javadocs ($project . name : $project . version )"
4646 // Pick the styles for the JDK that is used to "build" the Javadocs:
47- stylesheetFile = rootProject. layout. buildDirectory. dir(" unpacked-theme" ). get()
48- .dir(" hibernate-asciidoctor-theme" ). dir(" javadoc" ). dir(" jdk21" ). file(" stylesheet.css" ). asFile
47+
48+ def rootThemeDir = rootProject. layout. buildDirectory. dir(" unpacked-theme" ). get(). dir(" hibernate-asciidoctor-theme" ). dir(" javadoc" ). dir(" jdk25" )
49+ stylesheetFile = rootThemeDir. file(" stylesheet.css" ). asFile
4950 bottom = " Copyright © 2001-$currentYear <a href=\" https://redhat.com\" >Red Hat, Inc.</a> All Rights Reserved."
5051
5152 // The javadoc folder contains cached versions of the respective element-list files to avoid release issues when servers are down
@@ -70,6 +71,10 @@ tasks.withType(Javadoc).configureEach {
7071 quiet()
7172
7273 addBooleanOption(' Xdoclint:none' , true )
74+
75+ header = " <div id=\" toggleContainer\" ></div>"
76+ addStringOption ' -add-script' , rootThemeDir. dir(' resources' ). file(' theme-switch.js' ). asFile. absolutePath
77+ docFilesSubDirs = true
7378 }
7479 dependsOn tasks. unpackTheme
7580}
You can’t perform that action at this time.
0 commit comments