diff options
-rw-r--r-- | plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt | 2 | ||||
-rw-r--r-- | plugins/gfm/src/main/kotlin/GfmPlugin.kt | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt index 4233ffa1..88536558 100644 --- a/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt +++ b/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt @@ -38,7 +38,7 @@ open class DokkaLocationProvider( if (first) page else throw AssertionError("Multiple pages associated with dri: $dri") } - protected open val anchorsIndex = pageGraphRoot.withDescendants().filterIsInstance<ContentPage>() + protected open val anchorsIndex: Map<DRI, ContentPage> = pageGraphRoot.withDescendants().filterIsInstance<ContentPage>() .flatMap { page -> page.content.withDescendants() .filter { it.extra[SymbolAnchorHint] != null } diff --git a/plugins/gfm/src/main/kotlin/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/GfmPlugin.kt index c8f78c26..65723a0c 100644 --- a/plugins/gfm/src/main/kotlin/GfmPlugin.kt +++ b/plugins/gfm/src/main/kotlin/GfmPlugin.kt @@ -362,8 +362,4 @@ class MarkdownLocationProviderFactory(val context: DokkaContext) : LocationProvi class MarkdownLocationProvider( pageGraphRoot: RootPageNode, dokkaContext: DokkaContext -) : DokkaLocationProvider( - pageGraphRoot, - dokkaContext, - ".md" -)
\ No newline at end of file +) : DokkaLocationProvider(pageGraphRoot, dokkaContext, ".md")
\ No newline at end of file |