aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-08-20 16:58:23 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-21 16:40:57 +0200
commit705cbd313838db9f0c64d8f2bc7947ccbb40ed19 (patch)
tree5930bddf15096c03629e10413632ba0dfa779197 /plugins/javadoc/src
parent39b64feead5718ae9d3e4293407cf0858057493a (diff)
downloaddokka-705cbd313838db9f0c64d8f2bc7947ccbb40ed19.tar.gz
dokka-705cbd313838db9f0c64d8f2bc7947ccbb40ed19.tar.bz2
dokka-705cbd313838db9f0c64d8f2bc7947ccbb40ed19.zip
Generate output to package-list and element-list
Diffstat (limited to 'plugins/javadoc/src')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt2
-rw-r--r--plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/packagelist/JavadocPackageListTest.kt2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt
index 48d6120f..e86816a3 100644
--- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt
+++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt
@@ -63,7 +63,7 @@ class JavadocPlugin : DokkaPlugin() {
PackageListCreator(
context = it,
format = RecognizedLinkFormat.DokkaJavadoc,
- fileName = "element-list"
+ outputFilesNames = listOf("package-list", "element-list")
)
} order { after(rootCreator) }
}
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/packagelist/JavadocPackageListTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/packagelist/JavadocPackageListTest.kt
index b3b21909..431f4464 100644
--- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/packagelist/JavadocPackageListTest.kt
+++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/packagelist/JavadocPackageListTest.kt
@@ -33,6 +33,7 @@ internal class JavadocPackageListTest : AbstractJavadocTemplateMapTest() {
package1
""".trimIndent()
assertEquals(expected, contents["/element-list"]?.trimIndent())
+ assertEquals(expected, contents["/package-list"]?.trimIndent())
}
}
@@ -69,6 +70,7 @@ internal class JavadocPackageListTest : AbstractJavadocTemplateMapTest() {
package1.package1Inner.package1InnerInner
""".trimIndent()
assertEquals(expected, contents["/element-list"]?.trimIndent())
+ assertEquals(expected, contents["/package-list"]?.trimIndent())
}
}
} \ No newline at end of file