Skip to content

Commit eba1fb7

Browse files
author
Jeremy Jeanne
committed
Remove verification tasks (validateDita, checkLinks)
- DitaOtValidateTask has false positive issues on generated files - Use native 'dita validate' subcommand for validation instead Co-authored-by: Jeremy Jeanne <jeremy.jeanne@4dconcept.fr> Signed-off-by: Jeremy Jeanne <jeremy.jeanne@4dconcept.fr>
1 parent 6896418 commit eba1fb7

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

build.gradle

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ abstract class XsltTransformTask extends DefaultTask {
9696
}
9797

9898
import com.github.jyjeanne.DitaOtTask
99-
import com.github.jyjeanne.DitaOtValidateTask
100-
import com.github.jyjeanne.DitaLinkCheckTask
10199

102100
def getPropertyOrDefault(String name, def defaultValue) {
103101
providers.gradleProperty(name).getOrElse(defaultValue)
@@ -298,36 +296,6 @@ task site(type: DitaOtTask) {
298296
// Verification Tasks (v2.8.1 features)
299297
// =============================================================================
300298

301-
task validateDita(type: DitaOtValidateTask) {
302-
group = 'verification'
303-
description = 'Validate DITA content without full transformation.'
304-
ditaOtDir = file(findProperty('ditaHome') ?: ditaHome)
305-
inputFiles = files(
306-
"${projectDirPath}/userguide.ditamap",
307-
"${projectDirPath}/userguide-book.ditamap",
308-
"${projectDirPath}/site.ditamap"
309-
)
310-
strictMode = false
311-
failOnError = true
312-
}
313-
314-
task checkLinks(type: DitaLinkCheckTask) {
315-
group = 'verification'
316-
description = 'Check for broken internal and external links.'
317-
inputFiles = files(
318-
"${projectDirPath}/userguide.ditamap",
319-
"${projectDirPath}/userguide-book.ditamap"
320-
)
321-
checkExternal = false // Set to true to also check external URLs
322-
failOnBroken = true
323-
recursive = true
324-
}
325-
326-
task verify(dependsOn: [validateDita, checkLinks]) {
327-
group = 'verification'
328-
description = 'Run all verification tasks (validate DITA and check links).'
329-
}
330-
331299
// =============================================================================
332300
// Aggregate Tasks
333301
// =============================================================================

0 commit comments

Comments
 (0)