org.jetbrains.dokka.gfm.templateProcessing.JekyllTemplateProcessingPlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jekyll-template-processing-plugin Show documentation
Show all versions of jekyll-template-processing-plugin Show documentation
Dokka is an API documentation engine for Kotlin
package org.jetbrains.dokka.gfm.templateProcessing
import org.jetbrains.dokka.allModulesPage.AllModulesPagePlugin
import org.jetbrains.dokka.allModulesPage.MultimoduleLocationProvider
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.resolvers.local.DokkaLocationProviderFactory
import org.jetbrains.dokka.jekyll.JekyllPlugin
import org.jetbrains.dokka.plugability.DokkaPlugin
class JekyllTemplateProcessingPlugin : DokkaPlugin() {
private val allModulesPagePlugin by lazy { plugin() }
private val jekyllPlugin by lazy { plugin() }
private val gfmTemplatingPlugin by lazy { plugin() }
private val dokkaBase by lazy { plugin() }
val jekyllLocationProvider by extending {
dokkaBase.locationProviderFactory providing MultimoduleLocationProvider::Factory override listOf(
jekyllPlugin.locationProvider,
gfmTemplatingPlugin.gfmLocationProvider
)
}
val jekyllPartialLocationProvider by extending {
allModulesPagePlugin.partialLocationProviderFactory providing ::DokkaLocationProviderFactory override listOf(
allModulesPagePlugin.baseLocationProviderFactory,
gfmTemplatingPlugin.gfmPartialLocationProvider
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy