diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-05-16 18:06:56 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-05-16 18:09:27 +0300 |
commit | b3fa0d91fd466c3319f3a37a1cc5e82be2b89697 (patch) | |
tree | cf652ce23f0499a6f28f92176798de149ead8495 /core/testdata/format | |
parent | 7eb623f6f79f1d93d094cbb75ff057f0c0958f87 (diff) | |
download | dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.tar.gz dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.tar.bz2 dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.zip |
Fix link resolution context for inherited docs
Fix #229
Diffstat (limited to 'core/testdata/format')
-rw-r--r-- | core/testdata/format/inheritedLink.1.kt | 10 | ||||
-rw-r--r-- | core/testdata/format/inheritedLink.kt | 11 | ||||
-rw-r--r-- | core/testdata/format/inheritedLink.md | 17 |
3 files changed, 38 insertions, 0 deletions
diff --git a/core/testdata/format/inheritedLink.1.kt b/core/testdata/format/inheritedLink.1.kt new file mode 100644 index 00000000..29cc12b4 --- /dev/null +++ b/core/testdata/format/inheritedLink.1.kt @@ -0,0 +1,10 @@ +package p1 + +import java.util.LinkedList + +interface Foo { + + /** Says hello - [LinkedList]. */ + fun sayHello() : String + +}
\ No newline at end of file diff --git a/core/testdata/format/inheritedLink.kt b/core/testdata/format/inheritedLink.kt new file mode 100644 index 00000000..86b8f4e2 --- /dev/null +++ b/core/testdata/format/inheritedLink.kt @@ -0,0 +1,11 @@ +package p2 + +import p1.Foo + +class FooBar : Foo { + + override fun sayHello(): String { + return "Hello!" + } + +}
\ No newline at end of file diff --git a/core/testdata/format/inheritedLink.md b/core/testdata/format/inheritedLink.md new file mode 100644 index 00000000..e5af326c --- /dev/null +++ b/core/testdata/format/inheritedLink.md @@ -0,0 +1,17 @@ +<!-- File: test/p2/-foo-bar/-init-.md --> +[test](../../index.md) / [p2](../index.md) / [FooBar](index.md) / [<init>](./-init-.md) + +# <init> + +`FooBar()` +<!-- File: test/p2/-foo-bar/say-hello.md --> +[test](../../index.md) / [p2](../index.md) / [FooBar](index.md) / [sayHello](./say-hello.md) + +# sayHello + +`fun sayHello(): String` + +Overrides [Foo.sayHello](../../p1/-foo/say-hello.md) + +Says hello - [LinkedList](http://docs.oracle.com/javase/6/docs/api/java/util/LinkedList.html). + |