-
Notifications
You must be signed in to change notification settings - Fork 418
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
46b3371
commit e5ea084
Showing
11 changed files
with
76 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
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
6 changes: 6 additions & 0 deletions
6
plugins/jekyll/jekyll-template-processing/api/jekyll-template-processing.api
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,6 @@ | ||
public final class org/jetbrains/dokka/gfm/templateProcessing/JekyllTemplateProcessingPlugin : org/jetbrains/dokka/plugability/DokkaPlugin { | ||
public fun <init> ()V | ||
public final fun getJekyllLocationProvider ()Lorg/jetbrains/dokka/plugability/Extension; | ||
public final fun getJekyllPartialLocationProvider ()Lorg/jetbrains/dokka/plugability/Extension; | ||
} | ||
|
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