package org.jetbrains.dokka
public open class HtmlFormatService(locationService: LocationService, signatureGenerator: LanguageService)
: StructuredFormatService(locationService, signatureGenerator) {
override val extension: String = "html"
override fun appendBlockCode(to: StringBuilder, line: String) {
to.appendln("")
to.appendln(line)
to.appendln("
")
}
override fun appendBlockCode(to: StringBuilder, lines: Iterable) {
to.appendln("")
to.appendln(lines.join("\n"))
to.appendln("
")
}
override fun appendHeader(to: StringBuilder, text: String, level: Int) {
to.appendln("$text")
}
override fun appendText(to: StringBuilder, text: String) {
to.appendln("$text
")
}
override fun appendLine(to: StringBuilder, text: String) {
to.appendln("$text
")
}
override fun appendLine(to: StringBuilder) {
to.appendln("
")
}
override fun formatLink(text: String, location: Location): String {
return "${text}"
}
override fun formatBold(text: String): String {
return "$text"
}
override fun formatCode(code: String): String {
return "$code
"
}
override fun formatBreadcrumbs(items: Iterable): String {
return items.map { formatLink(it) }.joinToString(" / ")
}
override fun appendOutlineChildren(to: StringBuilder, nodes: Iterable) {
}
override fun appendOutlineHeader(to: StringBuilder, node: DocumentationNode) {
}
}