@@ -253,7 +253,8 @@ asciidoctorj {
253
253
' html.meta.project-key' : ' orm' ,
254
254
' html.outdated-content.project-key' : ' orm' ,
255
255
' html-meta-description' : ' Hibernate ORM, relational persistence for idiomatic Java' ,
256
- ' html-meta-keywords' : ' hibernate, orm, hibernate orm, database, db, jpa, sql'
256
+ ' html-meta-keywords' : ' hibernate, orm, hibernate orm, database, db, jpa, sql' ,
257
+ ' html-meta-version-family' : ormBuildDetails. hibernateVersion. family
257
258
258
259
options logDocuments : true
259
260
}
@@ -889,9 +890,20 @@ tasks.withType(AsciidoctorTask).configureEach {
889
890
}
890
891
// See https://docs.asciidoctor.org/gradle-plugin/latest/common-task-configuration/#choosing-an-execution-mode-for-asciidoctorj
891
892
executionMode = ExecutionMode . JAVA_EXEC
893
+
894
+ dependsOn ' unpackTheme'
892
895
}
893
896
894
897
tasks. withType(AsciidoctorPdfTask ). configureEach {
895
898
// See https://docs.asciidoctor.org/gradle-plugin/latest/common-task-configuration/#choosing-an-execution-mode-for-asciidoctorj
896
899
executionMode = ExecutionMode . JAVA_EXEC
900
+
901
+ asciidoctorj {
902
+ requires rootProject. layout. buildDirectory. dir(" unpacked-theme" ). get()
903
+ .dir(" hibernate-asciidoctor-theme" ). dir(" asciidoc" ). dir(" theme" ). file(" hibernate.rb" ). asFile. absolutePath
904
+ }
905
+
906
+ attributes ' rouge-style' : ' hibernate'
907
+
908
+ dependsOn ' unpackTheme'
897
909
}
0 commit comments