aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/StandardFormats.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Formats/StandardFormats.kt')
-rw-r--r--src/Formats/StandardFormats.kt47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Formats/StandardFormats.kt b/src/Formats/StandardFormats.kt
new file mode 100644
index 00000000..1d5ffe13
--- /dev/null
+++ b/src/Formats/StandardFormats.kt
@@ -0,0 +1,47 @@
+package org.jetbrains.dokka.Formats
+
+import org.jetbrains.dokka.*
+
+class HtmlFormatDescriptor : FormatDescriptor {
+ override val formatServiceClass: Class<out FormatService>
+ get() = javaClass<HtmlFormatService>()
+
+ override val outlineServiceClass: Class<out OutlineFormatService>
+ get() = javaClass<HtmlFormatService>()
+
+ override val generatorServiceClass: Class<out Generator>
+ get() = javaClass<FileGenerator>()
+}
+
+class KotlinWebsiteFormatDescriptor : FormatDescriptor {
+ override val formatServiceClass: Class<out FormatService>
+ get() = javaClass<KotlinWebsiteFormatService>()
+
+ override val outlineServiceClass: Class<out OutlineFormatService>
+ get() = javaClass<YamlOutlineService>()
+
+ override val generatorServiceClass: Class<out Generator>
+ get() = javaClass<FileGenerator>()
+}
+
+class JekyllFormatDescriptor : FormatDescriptor {
+ override val formatServiceClass: Class<out FormatService>
+ get() = javaClass<JekyllFormatService>()
+
+ override val outlineServiceClass: Class<out OutlineFormatService>?
+ get() = null
+
+ override val generatorServiceClass: Class<out Generator>
+ get() = javaClass<FileGenerator>()
+}
+
+class MarkdownFormatDescriptor : FormatDescriptor {
+ override val formatServiceClass: Class<out FormatService>
+ get() = javaClass<MarkdownFormatService>()
+
+ override val outlineServiceClass: Class<out OutlineFormatService>?
+ get() = null
+
+ override val generatorServiceClass: Class<out Generator>
+ get() = javaClass<FileGenerator>()
+}