fixed up function links on package frame

This commit is contained in:
James Strachan
2012-02-23 13:06:25 +00:00
parent b5153de155
commit 880b90dace
3 changed files with 2 additions and 3 deletions
@@ -24,7 +24,7 @@ abstract class KDocTemplate() : TextTemplate() {
return if (f.owner is KClass) {
"${href(f.owner)}#${f.link}"
} else {
"#${f.link}"
"package-summary.html#${f.link}"
}
}
@@ -74,7 +74,7 @@ class PackageFrameTemplate(val model: KModel, p: KPackage) : PackageTemplateSupp
<FONT CLASS="FrameItemFont">
<BR>""")
for (c in functions) {
println("<A HREF=\"${c.name}.html\" title=\"function in ${pkg.name}\" target=\"classFrame\"><I>${c.name}</I></A>")
println("<A HREF=\"${href(c)}\" title=\"function in ${pkg.name}\" target=\"classFrame\"><I>${c.name}</I></A>")
println("<BR>")
}
println("""</TR>
@@ -181,7 +181,6 @@ class KModel(var context: BindingContext, var title: String = "Documentation", v
// lets remove the comment tokens
//val lines = text.trim().split("\\n")
text = text.trim().trim("/").trim("*").trim()
// TODO convert any macros or wiki text!
return text
}