aboutsummaryrefslogtreecommitdiff
path: root/src/Formats
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-30 18:43:48 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-10-30 18:43:48 +0100
commite4b2ae90bf0e84f76ceb7c56b7c128d28adad917 (patch)
treeb1e7d86b808b41909679d44da8ac97bec1928c44 /src/Formats
parent17492c5f48c459dd44eafb0e747c1164193ca7f7 (diff)
downloaddokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.tar.gz
dokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.tar.bz2
dokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.zip
initial support for generating javadoc from Kotlin light classes
Diffstat (limited to 'src/Formats')
-rw-r--r--src/Formats/FormatDescriptor.kt4
-rw-r--r--src/Formats/StandardFormats.kt12
2 files changed, 15 insertions, 1 deletions
diff --git a/src/Formats/FormatDescriptor.kt b/src/Formats/FormatDescriptor.kt
index beff730f..cc12dfb9 100644
--- a/src/Formats/FormatDescriptor.kt
+++ b/src/Formats/FormatDescriptor.kt
@@ -3,9 +3,11 @@ package org.jetbrains.dokka.Formats
import org.jetbrains.dokka.FormatService
import org.jetbrains.dokka.Generator
import org.jetbrains.dokka.OutlineFormatService
+import org.jetbrains.dokka.PackageDocumentationBuilder
public interface FormatDescriptor {
val formatServiceClass: Class<out FormatService>?
val outlineServiceClass: Class<out OutlineFormatService>?
val generatorServiceClass: Class<out Generator>
-} \ No newline at end of file
+ val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>?
+}
diff --git a/src/Formats/StandardFormats.kt b/src/Formats/StandardFormats.kt
index 658735c0..12b5d85d 100644
--- a/src/Formats/StandardFormats.kt
+++ b/src/Formats/StandardFormats.kt
@@ -11,6 +11,9 @@ class HtmlFormatDescriptor : FormatDescriptor {
override val generatorServiceClass: Class<out Generator>
get() = FileGenerator::class.java
+
+ override val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>?
+ get() = null
}
class KotlinWebsiteFormatDescriptor : FormatDescriptor {
@@ -22,6 +25,9 @@ class KotlinWebsiteFormatDescriptor : FormatDescriptor {
override val generatorServiceClass: Class<out Generator>
get() = FileGenerator::class.java
+
+ override val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>?
+ get() = null
}
class JekyllFormatDescriptor : FormatDescriptor {
@@ -33,6 +39,9 @@ class JekyllFormatDescriptor : FormatDescriptor {
override val generatorServiceClass: Class<out Generator>
get() = FileGenerator::class.java
+
+ override val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>?
+ get() = null
}
class MarkdownFormatDescriptor : FormatDescriptor {
@@ -44,4 +53,7 @@ class MarkdownFormatDescriptor : FormatDescriptor {
override val generatorServiceClass: Class<out Generator>
get() = FileGenerator::class.java
+
+ override val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>?
+ get() = null
}