From a3e93d95215b96740306d10a17a858f407ca39e5 Mon Sep 17 00:00:00 2001 From: Antoine Gourlay Date: Thu, 16 Apr 2015 17:24:12 +0200 Subject: 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 --- test/scaladoc/resources/SI-4476.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/scaladoc/resources/SI-4476.scala (limited to 'test/scaladoc/resources') diff --git a/test/scaladoc/resources/SI-4476.scala b/test/scaladoc/resources/SI-4476.scala new file mode 100644 index 0000000000..eb35ef45e7 --- /dev/null +++ b/test/scaladoc/resources/SI-4476.scala @@ -0,0 +1,9 @@ +package foo + +@deprecated("","") +class A + +class B { + @deprecated("","") + def bar = 1 +} -- cgit v1.2.3