DokkaBaseLocationProvider

abstract class DokkaBaseLocationProvider(pageGraphRoot: RootPageNode, dokkaContext: DokkaContext) : DefaultLocationProvider

Constructors

Link copied to clipboard
fun DokkaBaseLocationProvider(pageGraphRoot: RootPageNode, dokkaContext: DokkaContext)

Functions

Link copied to clipboard
abstract fun ancestors(node: PageNode): List<PageNode>
Link copied to clipboard
open fun anchorForDCI(dci: DCI, sourceSets: Set<DisplaySourceSet>): String

Anchors should be unique and should contain sourcesets, dri and contentKind. The idea is to make them as short as possible and just use a hashCode from sourcesets in order to match the 2040 characters limit

Link copied to clipboard
open fun expectedLocationForDri(dri: DRI): String

This method should return guessed filesystem location for a given DRI It is used to decide if a DRI should be present in the relocation list of the generated package-list so it is ok if the path differs from the one returned by resolve

Link copied to clipboard
abstract fun pathToRoot(from: PageNode): String
Link copied to clipboard
abstract fun resolve(    dri: DRI,     sourceSets: Set<DisplaySourceSet>,     context: PageNode? = null): String?
abstract fun resolve(    node: PageNode,     context: PageNode? = null,     skipExtension: Boolean = false): String?

Inheritors

Link copied to clipboard