diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-16 13:04:09 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-16 13:04:09 +0100 |
commit | 4b75751845b6d63a642cac1017ada30f2549bf14 (patch) | |
tree | e593a81f00eda469eb5b0dfa05af60455bc467ea /src/Formats/HtmlTemplateService.kt | |
parent | d75cc63e9b1edc229fad225956ba44fa433e2d0e (diff) | |
download | dokka-4b75751845b6d63a642cac1017ada30f2549bf14.tar.gz dokka-4b75751845b6d63a642cac1017ada30f2549bf14.tar.bz2 dokka-4b75751845b6d63a642cac1017ada30f2549bf14.zip |
generate page titles in HTML output
Diffstat (limited to 'src/Formats/HtmlTemplateService.kt')
-rw-r--r-- | src/Formats/HtmlTemplateService.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Formats/HtmlTemplateService.kt b/src/Formats/HtmlTemplateService.kt index 5bb03fbd..54bfa300 100644 --- a/src/Formats/HtmlTemplateService.kt +++ b/src/Formats/HtmlTemplateService.kt @@ -1,7 +1,7 @@ package org.jetbrains.dokka public trait HtmlTemplateService { - fun appendHeader(to: StringBuilder) + fun appendHeader(to: StringBuilder, title: String?) fun appendFooter(to: StringBuilder) class object { @@ -11,9 +11,12 @@ public trait HtmlTemplateService { to.appendln("</BODY>") to.appendln("</HTML>") } - override fun appendHeader(to: StringBuilder) { + override fun appendHeader(to: StringBuilder, title: String?) { to.appendln("<HTML>") to.appendln("<HEAD>") + if (title != null) { + to.appendln("<title>$title</title>") + } if (css != null) { to.appendln("<link rel=\"stylesheet\" href=\"$css\">") } |