Skip to content

Commit

Permalink
Add back kdoc for packaged font functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tclement0922 committed Sep 8, 2024
1 parent aa7f98b commit 900cc63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/src/main/kotlin/dev/tclement/fonticons/FAVariant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private abstract class CreateFAVariantTask : DefaultTask() {
)
""".trimIndent()
)
.addKdoc("""
The FontAwesome Free ${variant.uppercaseFirstChar()} font.
""".trimIndent())
.build()
fileSpecBuilder.addFunction(functionSpec)
fileSpecBuilder.addImport("dev.tclement.fonticons", "rememberStaticIconFont")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ private abstract class CreateSymbolsVariantTask : DefaultTask() {
val expectFunctionSpec = commonFunSpec()
.addParameter(ParameterSpec.builder("grade", Int::class).defaultValue("0").build())
.addParameter(ParameterSpec.builder("fill", Boolean::class).defaultValue("false").build())
.addKdoc("""
The Material Symbols variable font, ${variant.uppercaseFirstChar()} variant.
@param grade grade of the font, between -50 and 200, 0 by default
@param fill whether to use the filled variation of the icons or not, false by default
""".trimIndent())
.addModifiers(KModifier.EXPECT)
.build()
commonFileSpecBuilder.addFunction(expectFunctionSpec)
Expand Down

0 comments on commit 900cc63

Please sign in to comment.