Skip to content

Commit 1ada8da

Browse files
fixed asciidoctor gradle build and anchor
1 parent 0cfdd7c commit 1ada8da

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

plugin/build.gradle

+18-12
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ buildscript {
88
}
99
dependencies {
1010
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
11-
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
12-
classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6'
13-
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
1411
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
1512
}
1613
}
1714

15+
plugins {
16+
id 'org.asciidoctor.jvm.convert' version '3.2.0'
17+
id "org.asciidoctor.jvm.pdf" version "3.2.0"
18+
id "org.asciidoctor.jvm.epub" version "3.2.0"
19+
}
20+
1821
version project.file("../version.txt").text.trim()
1922
group "org.grails.plugins"
2023

@@ -23,9 +26,10 @@ apply plugin: "idea"
2326
apply plugin: "org.grails.grails-plugin"
2427
apply plugin: "org.grails.grails-plugin-publish"
2528
apply plugin: "org.grails.grails-gsp"
26-
apply plugin: "org.asciidoctor.convert"
2729
apply plugin: 'com.jfrog.bintray'
2830

31+
32+
2933
// Used for publishing to central repository, remove if not needed
3034
// apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
3135
// apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
@@ -66,12 +70,6 @@ dependencies {
6670

6771
bootJar.enabled = false
6872

69-
// Needed for org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6
70-
// See https://github.com/asciidoctor/asciidoctorj/issues/415
71-
asciidoctorj {
72-
version = '1.5.4'
73-
}
74-
7573
static String buildDate() {
7674
def df = new SimpleDateFormat("yyyy-MM-dd")
7775
df.setTimeZone(TimeZone.getTimeZone("UTC"))
@@ -95,13 +93,21 @@ grailsPublish {
9593
}
9694

9795
asciidoctor {
98-
separateOutputDirs = false
96+
logDocuments true
97+
baseDirFollowsSourceDir()
98+
9999
sourceDir = file('src/docs')
100100
sources {
101101
include 'index.adoc'
102102
}
103+
103104
outputDir new File(buildDir, 'docs')
104-
backends 'html5', 'pdf', 'epub3'
105+
106+
outputOptions {
107+
backends = ['html5', 'pdf', 'epub3']
108+
separateOutputDirs = false
109+
}
110+
105111
attributes 'experimental': 'true',
106112
'source-highlighter': 'coderay',
107113
'compat-mode': 'true',

plugin/src/docs/configuration.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ AuditLogContext.withConfig(ignoreEvents = [AuditEventType.INSERT]) {
189189
```
190190

191191
=== Runtime Overrides
192-
See the <<index#context-overrides,Context Overrides>> for help using `AuditLogContext` to override configuration for a block.
192+
See the <<context-overrides,Context Overrides>> for help using `AuditLogContext` to override configuration for a block.
193193

194194
=== Example Configuration
195195
Example `application.groovy` configuration with various settings as described above:

plugin/src/docs/index.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Robert Oschwald
66
:toc: left
77
:toclevels: 2
88
:numbered:
9+
:sectanchors:
910
:keywords: Grails, AuditLog, AuditTrail
1011
ifdef::backend-epub3[]
1112
:front-cover-image: image:cover.png[Front Cover,800,600]

0 commit comments

Comments
 (0)