aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/HtmlFormatService.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-15 16:18:53 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-15 16:18:53 +0400
commit499d082186fcda877a216d536cf9512d0f0265ac (patch)
treef82c8c5e19cc5c37e4fc3b37706a988fa32b173a /src/Formats/HtmlFormatService.kt
parent62cb509a1a5adf0e5f9ba8d8e7545a93eb8516b2 (diff)
downloaddokka-499d082186fcda877a216d536cf9512d0f0265ac.tar.gz
dokka-499d082186fcda877a216d536cf9512d0f0265ac.tar.bz2
dokka-499d082186fcda877a216d536cf9512d0f0265ac.zip
Cleaning, generalizing, added outline support (hardcoded yml for now)
Diffstat (limited to 'src/Formats/HtmlFormatService.kt')
-rw-r--r--src/Formats/HtmlFormatService.kt11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Formats/HtmlFormatService.kt b/src/Formats/HtmlFormatService.kt
index 6c004509..6f81e8eb 100644
--- a/src/Formats/HtmlFormatService.kt
+++ b/src/Formats/HtmlFormatService.kt
@@ -1,6 +1,6 @@
package org.jetbrains.dokka
-public open class HtmlFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator)
+public open class HtmlFormatService(locationService: LocationService, signatureGenerator: LanguageService)
: StructuredFormatService(locationService, signatureGenerator) {
override val extension: String = "html"
@@ -32,8 +32,8 @@ public open class HtmlFormatService(locationService: LocationService, signatureG
to.appendln("<br/>")
}
- override fun formatLink(link: FormatLink): String {
- return "<a href=\"${link.location.path}\">${link.text}</a>"
+ override fun formatLink(text: String, location: Location): String {
+ return "<a href=\"${location.path}\">${text}</a>"
}
override fun formatBold(text: String): String {
@@ -47,4 +47,9 @@ public open class HtmlFormatService(locationService: LocationService, signatureG
override fun formatBreadcrumbs(items: Iterable<FormatLink>): String {
return items.map { formatLink(it) }.joinToString("&nbsp;/&nbsp;")
}
+
+ override fun appendOutlineChildren(to: StringBuilder, nodes: Iterable<DocumentationNode>) {
+ }
+ override fun appendOutlineHeader(to: StringBuilder, node: DocumentationNode) {
+ }
} \ No newline at end of file