-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way how we render pages, so we parse .md files and then apply html layouts. Add basic support for linking.
- Loading branch information
1 parent
9c84ccb
commit 7b53d0d
Showing
15 changed files
with
766 additions
and
229 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
build/ | ||
gradle/ | ||
lib/ | ||
out |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
kotlin.code.style=official | ||
|
||
kotlin_version=1.4-M3 | ||
dokka_version=1.4.0-rc | ||
kotlin_version=1.4.0 | ||
dokka_version=1.4.0 | ||
|
||
language_version=1.4 |
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 |
---|---|---|
|
@@ -17,5 +17,6 @@ pluginManagement { | |
mavenCentral() | ||
jcenter() | ||
gradlePluginPortal() | ||
mavenLocal() | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.virtuslab.dokka.site | ||
|
||
import org.jetbrains.dokka.model.DisplaySourceSet | ||
import org.jetbrains.dokka.model.properties.PropertyContainer | ||
import org.jetbrains.dokka.pages.* | ||
|
||
data class PartiallyRenderedContend( | ||
val page: PreResolvedPage, | ||
override val children: List<ContentNode>, | ||
override val dci: DCI, | ||
override val sourceSets: Set<DisplaySourceSet>, | ||
override val style: Set<Style> = emptySet(), | ||
override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty() | ||
) : ContentNode { | ||
override fun hasAnyContent(): Boolean = children.find { hasAnyContent() } != null | ||
|
||
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = | ||
copy(extra = extra) | ||
|
||
override fun withSourceSets(sourceSets: Set<DisplaySourceSet>): ContentNode = | ||
copy(sourceSets = sourceSets) | ||
|
||
val allResources: List<String> by lazy { | ||
page.render("").resources | ||
} | ||
} |
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
Oops, something went wrong.