diff options
Diffstat (limited to 'core/src/main/kotlin/Formats/YamlOutlineService.kt')
-rw-r--r-- | core/src/main/kotlin/Formats/YamlOutlineService.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/YamlOutlineService.kt b/core/src/main/kotlin/Formats/YamlOutlineService.kt index 7968824cd..39a5b9b3a 100644 --- a/core/src/main/kotlin/Formats/YamlOutlineService.kt +++ b/core/src/main/kotlin/Formats/YamlOutlineService.kt @@ -5,7 +5,7 @@ import java.io.File class YamlOutlineService @Inject constructor(val locationService: LocationService, val languageService: LanguageService) : OutlineFormatService { - override fun getOutlineFileName(location: Location): File = File("${location.path}.yml") + override fun getOutlineFile(location: Location): File = File("${location.path}.yml") var outlineLevel = 0 override fun appendOutlineHeader(location: Location, node: DocumentationNode, to: StringBuilder) { @@ -21,4 +21,6 @@ class YamlOutlineService @Inject constructor(val locationService: LocationServic body() outlineLevel-- } + + override fun getOutlineFileName(): String = "index" } |