diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2015-04-16 17:24:12 +0200 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2015-04-22 16:01:51 +0200 |
commit | a3e93d95215b96740306d10a17a858f407ca39e5 (patch) | |
tree | e3653a59acef67d1c9e05ca7b0e77bff984c0426 /src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala | |
parent | d2a174d27bce392329a9c5e4c7d2acee263cdb34 (diff) | |
download | scala-a3e93d95215b96740306d10a17a858f407ca39e5.tar.gz scala-a3e93d95215b96740306d10a17a858f407ca39e5.tar.bz2 scala-a3e93d95215b96740306d10a17a858f407ca39e5.zip |
SI-4476 add an index of deprecated members to scaladoc
The deprecated list is only emitted if there actually are deprecated
members; same for the link in the left sidebar.
We just build on the existing index support, with an additional method
to avoid having to go through the whole index if we won't generate the
page anyway. The deprecated list page itself is completely identical to
the normal index pages, except we don't strike through any entry (there
are *all* deprecated already).
There is just about enough space in the left sidebar for the deprecated
link, see [1], and [2] for when there are no deprecated members.
[1]: http://static.gourlaysama.net/img/scaladoc-deprecated.png
[2]: http://static.gourlaysama.net/img/scaladoc-deprecated-empty.png
Diffstat (limited to 'src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala b/src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala index 61ab18d42d..8313d842e5 100644 --- a/src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala +++ b/src/scaladoc/scala/tools/nsc/doc/html/HtmlFactory.scala @@ -123,6 +123,8 @@ class HtmlFactory(val universe: doc.Universe, index: doc.Index) { new page.Index(universe, index) writeFor this new page.IndexScript(universe, index) writeFor this + if (index.hasDeprecatedMembers) + new page.DeprecatedIndex(universe, index) writeFor this try { writeTemplates(_ writeFor this) for (letter <- index.firstLetterIndex) { |