All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.dokka.gfm.templateProcessing.JekyllTemplateProcessingPlugin.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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