package org.jetbrains.dokka public class HtmlFormatService(val locationService: LocationService, val signatureGenerator: SignatureGenerator) : FormatService { override val extension: String = "html" override fun format(node: DocumentationNode, to: StringBuilder) { with (to) { appendln("

") appendln("Summary for ${node.name}") appendln("

") appendln("") appendln(signatureGenerator.render(node)) appendln("") appendln() appendln("

") appendln(node.doc.summary) appendln("

") appendln("
") for (section in node.doc.sections) { appendln("

") appendln(section.label) appendln("

") appendln("

") appendln(section.text) appendln("

") } appendln("

") appendln("Members") appendln("

") appendln("") appendln("") appendln("") appendln("") appendln("") appendln("") appendln("") appendln("") appendln("") for (member in node.members.sortBy { it.name }) { val relativePath = locationService.relativeLocation(node, member, extension) appendln("") appendln("") appendln("") appendln("") appendln("") } appendln("") appendln("
MemberSignatureSummary
") append("${member.name}") appendln("") append("${signatureGenerator.render(member)}") appendln("") append("${member.doc.summary}") appendln("
") } } }