diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-03 03:33:24 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-03 03:33:24 +0300 |
commit | 5c3007bfdcdaed03167a2b7997df6a98da397aaf (patch) | |
tree | 55b035f27398672c945264096aef044cef632eba /core/src | |
parent | 341fb3d5d967b6b69e02460d510683cef2990436 (diff) | |
download | dokka-5c3007bfdcdaed03167a2b7997df6a98da397aaf.tar.gz dokka-5c3007bfdcdaed03167a2b7997df6a98da397aaf.tar.bz2 dokka-5c3007bfdcdaed03167a2b7997df6a98da397aaf.zip |
Fix yaml outline generation to use relative paths
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/Formats/YamlOutlineService.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/YamlOutlineService.kt b/core/src/main/kotlin/Formats/YamlOutlineService.kt index c36f98eb..3c92d8ff 100644 --- a/core/src/main/kotlin/Formats/YamlOutlineService.kt +++ b/core/src/main/kotlin/Formats/YamlOutlineService.kt @@ -13,7 +13,7 @@ class YamlOutlineService @Inject constructor( override fun appendOutlineHeader(location: Location, node: DocumentationNode, to: StringBuilder) { val indent = " ".repeat(outlineLevel) to.appendln("$indent- title: ${languageService.renderName(node)}") - to.appendln("$indent url: ${generator.location(node).path}") + to.appendln("$indent url: ${generator.relativePathToLocation(node.path.first(), node)}") } override fun appendOutlineLevel(to: StringBuilder, body: () -> Unit) { |