I finally got around to creating a plugin with a b...
# dokka
s
I finally got around to creating a plugin with a bunch of style tweaks for dokka you can use it by adding
Copy code
dependencies {
    dokkaPlugin("ca.solo-studios:dokka-style-tweaks-plugin:0.1.1")
}
to your
build.gradle.kts
file. It can then be configured using the type-safe plugin configuration:
Copy code
tasks {
    withType<AbstractDokkaTask>().configureEach {
        pluginConfiguration<DokkaStyleTweaksPlugin, DokkaStyleTweaksConfiguration> {
            minimalScrollbar = true
            darkPurpleHighlight = true
            improvedBlockquoteBorder = true
            lighterBlockquoteText = true
            sectionTabFontWeight = "500"
            sectionTabTransition = true
            improvedSectionTabBorder = true
            disableCodeWrapping = true
        }
    }
}
or via json:
Copy code
tasks {
    withType<AbstractDokkaTask>().configureEach {
        val dokkaTweaksConfiguration = """
            {
                "minimalScrollbar": true,
                "darkPurpleHighlight": true,
                "improvedBlockquoteBorder": true,
                "lighterBlockquoteText": true,
                "sectionTabFontWeight": "500"
                "sectionTabTransition": true,
                "improvedSectionTabBorder": true,
                "disableCodeWrapping": true
            }
        """.trimIndent()

        pluginConfiguration.set(
                mapOf(
                        "ca.solostudios.dokkastyles.plugin.DokkaStyleTweaksPlugin" to dokkaTweaksConfiguration,
                     )
                               )
    }
}
all the tweaks are documented via kdoc, but the source is here: https://github.com/solo-studios/dokka-plugins/blob/master/dokka-style-tweaks-plugin/src/main/kotlin/ca/solostudios/dokkastyles/plugin/DokkaStyleTweaksConfiguration.kt if anyone has any requests for other tweaks that could be added, please do tell I'm mainly focusing on "smaller" tweaks, aka nothing past like 20 lines of css for a single tweak I'm also fine with integrating things that I won't use myself, as everything is 100% configurable, and by default it won't change anything