aboutsummaryrefslogtreecommitdiff
path: root/core/testdata
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-18 16:01:52 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-18 16:14:02 +0300
commite80b64b122950f2a623ce86ea68abdb0061bed27 (patch)
tree389c43de9470bba6b09e6332096f17c0ad9850c6 /core/testdata
parent4f4b86b873b7676979d3258030fdfc382e22a06b (diff)
downloaddokka-e80b64b122950f2a623ce86ea68abdb0061bed27.tar.gz
dokka-e80b64b122950f2a623ce86ea68abdb0061bed27.tar.bz2
dokka-e80b64b122950f2a623ce86ea68abdb0061bed27.zip
Support reference-style markdown links in KDoc
#KT-17924 fixed
Diffstat (limited to 'core/testdata')
-rw-r--r--core/testdata/format/externalReferenceLink.kt10
-rw-r--r--core/testdata/format/externalReferenceLink.md10
-rw-r--r--core/testdata/format/referenceLink.kt16
-rw-r--r--core/testdata/format/referenceLink.md15
4 files changed, 51 insertions, 0 deletions
diff --git a/core/testdata/format/externalReferenceLink.kt b/core/testdata/format/externalReferenceLink.kt
new file mode 100644
index 00000000..4ca0ee21
--- /dev/null
+++ b/core/testdata/format/externalReferenceLink.kt
@@ -0,0 +1,10 @@
+/**
+ * It is link to [example site][example.com]
+ *
+ * Sure, it is [example.com]
+ *
+ * [example.com]: http://example.com
+ */
+fun a() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/externalReferenceLink.md b/core/testdata/format/externalReferenceLink.md
new file mode 100644
index 00000000..29d64afe
--- /dev/null
+++ b/core/testdata/format/externalReferenceLink.md
@@ -0,0 +1,10 @@
+[test](test/index) / [a](test/a)
+
+# a
+
+`fun a(): Unit`
+
+It is link to [example site](http://example.com)
+
+Sure, it is [example.com](http://example.com)
+
diff --git a/core/testdata/format/referenceLink.kt b/core/testdata/format/referenceLink.kt
new file mode 100644
index 00000000..c6550f04
--- /dev/null
+++ b/core/testdata/format/referenceLink.kt
@@ -0,0 +1,16 @@
+package example
+
+/**
+ * It is link to [example other func][example]
+ *
+ * Sure, it is [example]
+ *
+ * [example]: example.someOtherFunc
+ */
+fun a() {
+
+}
+
+fun someOtherFunc() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/referenceLink.md b/core/testdata/format/referenceLink.md
new file mode 100644
index 00000000..b3d89e0d
--- /dev/null
+++ b/core/testdata/format/referenceLink.md
@@ -0,0 +1,15 @@
+[test](test/index) / [example](test/example/index) / [a](test/example/a)
+
+# a
+
+`fun a(): Unit`
+
+It is link to [example other func](test/example/some-other-func)
+
+Sure, it is [example](test/example/some-other-func)
+
+[test](test/index) / [example](test/example/index) / [someOtherFunc](test/example/some-other-func)
+
+# someOtherFunc
+
+`fun someOtherFunc(): Unit` \ No newline at end of file