-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2182b7
commit 16db741
Showing
9 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
plugins/jekyll/jekyll-template-processing/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import org.jetbrains.registerDokkaArtifactPublication | ||
|
||
dependencies { | ||
implementation(project(":plugins:base")) | ||
implementation(project(":plugins:jekyll")) | ||
implementation(project(":plugins:all-modules-page")) | ||
implementation(project(":plugins:templating")) | ||
implementation(project(":plugins:gfm")) | ||
implementation(project(":plugins:gfm:gfm-template-processing")) | ||
|
||
val coroutines_version: String by project | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") | ||
} | ||
|
||
registerDokkaArtifactPublication("dokkaJekyllTemplateProcessing") { | ||
artifactId = "jekyll-template-processing-plugin" | ||
} |
36 changes: 36 additions & 0 deletions
36
.../main/kotlin/org/jetbrains/dokka/gfm/templateProcessing/JekyllTemplateProcessingPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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.gfm.GfmPlugin | ||
import org.jetbrains.dokka.jekyll.JekyllPlugin | ||
import org.jetbrains.dokka.plugability.DokkaPlugin | ||
|
||
class JekyllTemplateProcessingPlugin : DokkaPlugin() { | ||
|
||
private val allModulesPagePlugin by lazy { plugin<AllModulesPagePlugin>() } | ||
|
||
private val jekyllPlugin by lazy { plugin<JekyllPlugin>() } | ||
private val gfmPlugin by lazy { plugin<GfmPlugin>() } | ||
private val gfmTemplatingPlugin by lazy { plugin<GfmTemplateProcessingPlugin>() } | ||
|
||
private val dokkaBase by lazy { plugin<DokkaBase>() } | ||
|
||
val jekyllLocationProvider by extending { | ||
dokkaBase.locationProviderFactory providing MultimoduleLocationProvider::Factory override listOf( | ||
jekyllPlugin.locationProvider, | ||
gfmPlugin.locationProvider, | ||
gfmTemplatingPlugin.gfmLocationProvider, | ||
allModulesPagePlugin.multimoduleLocationProvider | ||
) | ||
} | ||
|
||
val jekyllPartialLocationProvider by extending { | ||
allModulesPagePlugin.partialLocationProviderFactory providing ::DokkaLocationProviderFactory override listOf( | ||
allModulesPagePlugin.baseLocationProviderFactory, | ||
gfmTemplatingPlugin.gfmPartialLocationProvider | ||
) | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ocessing/src/main/resources/META-INF/services/org.jetbrains.dokka.plugability.DokkaPlugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.jetbrains.dokka.gfm.templateProcessing.JekyllTemplateProcessingPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters