aboutsummaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:51:43 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:51:43 +0100
commitf3973480c0b03c9f28f05b5a4cf61bf3de3597bd (patch)
tree54fd4c5b7d30d2daf969c216936663335d1634fd /test/data
parent6659337410225b813ea902bfa4b2e5ba3c2c1aaa (diff)
downloaddokka-f3973480c0b03c9f28f05b5a4cf61bf3de3597bd.tar.gz
dokka-f3973480c0b03c9f28f05b5a4cf61bf3de3597bd.tar.bz2
dokka-f3973480c0b03c9f28f05b5a4cf61bf3de3597bd.zip
support links with custom labels
Diffstat (limited to 'test/data')
-rw-r--r--test/data/format/javaLinkTagWithLabel.html25
-rw-r--r--test/data/format/javaLinkTagWithLabel.java8
-rw-r--r--test/data/format/linkWithLabel.html37
-rw-r--r--test/data/format/linkWithLabel.kt6
4 files changed, 76 insertions, 0 deletions
diff --git a/test/data/format/javaLinkTagWithLabel.html b/test/data/format/javaLinkTagWithLabel.html
new file mode 100644
index 00000000..ccf3c712
--- /dev/null
+++ b/test/data/format/javaLinkTagWithLabel.html
@@ -0,0 +1,25 @@
+<HTML>
+<HEAD>
+<title>test / test.Foo</title>
+</HEAD>
+<BODY>
+<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/test/index">test</a>&nbsp;/&nbsp;<a href="test/test/-foo/index">Foo</a><br/>
+<br/>
+<h1>Foo</h1>
+<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Foo</span></code><br/>
+<p>Call <code><a href="test/test/-foo/bar">this wonderful method</a></code> to do the job. </p>
+<br/>
+<br/>
+<h3>Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<a href="test/test/-foo/bar">bar</a></td>
+<td>
+<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">bar</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
+</tr>
+</tbody>
+</table>
+</BODY>
+</HTML>
diff --git a/test/data/format/javaLinkTagWithLabel.java b/test/data/format/javaLinkTagWithLabel.java
new file mode 100644
index 00000000..7226f1c9
--- /dev/null
+++ b/test/data/format/javaLinkTagWithLabel.java
@@ -0,0 +1,8 @@
+package test;
+
+/**
+ * Call {@link #bar() this wonderful method} to do the job.
+ */
+class Foo {
+ public void bar()
+}
diff --git a/test/data/format/linkWithLabel.html b/test/data/format/linkWithLabel.html
new file mode 100644
index 00000000..75769ffd
--- /dev/null
+++ b/test/data/format/linkWithLabel.html
@@ -0,0 +1,37 @@
+<HTML>
+<HEAD>
+<title>test / Bar</title>
+</HEAD>
+<BODY>
+<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/-bar/index">Bar</a><br/>
+<br/>
+<h1>Bar</h1>
+<code><span class="keyword">class </span><span class="identifier">Bar</span></code><br/>
+<p>Use <a href="test/-bar/foo">this method</a> for best results.</p>
+<br/>
+<br/>
+<h3>Constructors</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<a href="test/-bar/-init-">&lt;init&gt;</a></td>
+<td>
+<code><span class="identifier">Bar</span><span class="symbol">(</span><span class="symbol">)</span></code><p>Use <a href="test/-bar/foo">this method</a> for best results.</p>
+</td>
+</tr>
+</tbody>
+</table>
+<h3>Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<a href="test/-bar/foo">foo</a></td>
+<td>
+<code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
+</tr>
+</tbody>
+</table>
+</BODY>
+</HTML>
diff --git a/test/data/format/linkWithLabel.kt b/test/data/format/linkWithLabel.kt
new file mode 100644
index 00000000..4a85c505
--- /dev/null
+++ b/test/data/format/linkWithLabel.kt
@@ -0,0 +1,6 @@
+/**
+ * Use [this method][Bar.foo] for best results.
+ */
+class Bar {
+ fun foo() {}
+}