Skip to content

Commit

Permalink
Reordering params, tparams to appear after main comment in scalaDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
François Garillot committed Sep 24, 2014
1 parent 0c1c2a0 commit e0a70cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ class ScalaDocHtmlProducer extends HtmlHover {
<h3>{ header }</h3>

val mainHtml = List(
bodyToHtml(comment.body),
bodiesToHtml("Example" + (if (comment.example.length > 1) "s" else ""), comment.example),
bodiesToHtml("Parameters", comment.valueParams.toList.sortBy(_._1).map {
case (name, body) => Body(Paragraph(Bold(Text(name))) :: body.blocks.toList)
}),
bodiesToHtml("Type Parameters", comment.typeParams.toList.sortBy(_._1).map {
case (name, body) => Body(Paragraph(Bold(Text(name))) :: body.blocks.toList)
}),
bodyToHtml(comment.body),
bodiesToHtml("Example" + (if (comment.example.length > 1) "s" else ""), comment.example),
bodiesToHtml("Version", comment.version.toList),
bodiesToHtml("Since", comment.since.toList),
bodiesToHtml("Note", comment.note),
Expand Down

0 comments on commit e0a70cc

Please sign in to comment.