-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change jekyll links to be .html (#1990)
- Loading branch information
1 parent
0bf1d0f
commit acdda6c
Showing
11 changed files
with
72 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" | ||
} |
32 changes: 32 additions & 0 deletions
32
.../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,32 @@ | ||
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<AllModulesPagePlugin>() } | ||
|
||
private val jekyllPlugin by lazy { plugin<JekyllPlugin>() } | ||
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, | ||
gfmTemplatingPlugin.gfmLocationProvider | ||
) | ||
} | ||
|
||
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