diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:04:34 +0100 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:04:34 +0100 |
commit | b5286f576f470ad1665a7b1acc9ea276bc1a0c18 (patch) | |
tree | 5cf3800e961b9da84b2db03707603865496f5ed0 /test/data/format | |
parent | b55b258574a01a02f906f5f12646ecacfc640e20 (diff) | |
parent | 0fac1d925b74f24002a4e1538088ce66c4b02cb9 (diff) | |
download | dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.tar.gz dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.tar.bz2 dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.zip |
Merge pull request #24 from orangy/sections-rewrite
Use KDoc PSI instead of custom Markdown extensions to parse KDoc into sections
Diffstat (limited to 'test/data/format')
-rw-r--r-- | test/data/format/paramTag.kt | 6 | ||||
-rw-r--r-- | test/data/format/paramTag.md | 20 | ||||
-rw-r--r-- | test/data/format/throwsTag.kt | 5 | ||||
-rw-r--r-- | test/data/format/throwsTag.md | 19 |
4 files changed, 50 insertions, 0 deletions
diff --git a/test/data/format/paramTag.kt b/test/data/format/paramTag.kt new file mode 100644 index 00000000..47e471f5 --- /dev/null +++ b/test/data/format/paramTag.kt @@ -0,0 +1,6 @@ +/** + * @param x A string + * @param y A number with a really long description that spans multiple lines and goes + * on and on and is very interesting to read + */ +fun f(x: String, y: Int) {} diff --git a/test/data/format/paramTag.md b/test/data/format/paramTag.md new file mode 100644 index 00000000..9534deb3 --- /dev/null +++ b/test/data/format/paramTag.md @@ -0,0 +1,20 @@ +[test](out.md) / [](out.md) / [f](out.md) + + +# f + + +``` +fun f(x: String, y: Int): Unit +``` + + + + + + +### Parameters + +`x` - A string +`y` - A number with a really long description that spans multiple lines and goes +on and on and is very interesting to read diff --git a/test/data/format/throwsTag.kt b/test/data/format/throwsTag.kt new file mode 100644 index 00000000..29a9c3f7 --- /dev/null +++ b/test/data/format/throwsTag.kt @@ -0,0 +1,5 @@ +/** + * @throws IllegalArgumentException on Mondays + * @exception NullPointerException on Tuesdays + */ +fun f() {} diff --git a/test/data/format/throwsTag.md b/test/data/format/throwsTag.md new file mode 100644 index 00000000..d968483b --- /dev/null +++ b/test/data/format/throwsTag.md @@ -0,0 +1,19 @@ +[test](out.md) / [](out.md) / [f](out.md) + + +# f + + +``` +fun f(): Unit +``` + + + + + + +### Exceptions + +`IllegalArgumentException` - on Mondays +`NullPointerException` - on Tuesdays |