Skip to content

Commit 550a4b8

Browse files
committed
Exclude default fonts from generated Javadoc
1 parent e15067c commit 550a4b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

documentation/documentation.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ tasks {
429429
"Platform" to listOf("org.junit.platform*")
430430
)
431431
addStringOption("-add-stylesheet", additionalStylesheetFile)
432+
addBooleanOption("-no-fonts", true)
432433
use(true)
433434
noTimestamp(true)
434435

@@ -481,6 +482,10 @@ tasks {
481482
return@filter result
482483
}
483484
}
485+
filesMatching("**/stylesheet.css") {
486+
// Remove invalid import of `dejavu.css` due to `javadoc --no-fonts`
487+
filter { line -> if (line.startsWith("@import url('fonts/")) null else line }
488+
}
484489
}
485490
into(layout.buildDirectory.dir("docs/fixedJavadoc"))
486491
}

0 commit comments

Comments
 (0)