aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-30 19:04:11 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-30 19:04:11 +0300
commitf3db3f313c599b84b1a9810723c6a503c0baf7a9 (patch)
treed98a0f988d15bb1c005d5838daccb111a370be51
parent880fb1095e1b6881ff4e891553de0cc9b92e3167 (diff)
downloaddokka-f3db3f313c599b84b1a9810723c6a503c0baf7a9.tar.gz
dokka-f3db3f313c599b84b1a9810723c6a503c0baf7a9.tar.bz2
dokka-f3db3f313c599b84b1a9810723c6a503c0baf7a9.zip
New format stub
-rw-r--r--core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt45
-rw-r--r--core/src/main/kotlin/Formats/StandardFormats.kt2
-rw-r--r--core/src/main/resources/dokka/format/java-layout-html.properties2
3 files changed, 48 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt b/core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt
new file mode 100644
index 00000000..c023c477
--- /dev/null
+++ b/core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt
@@ -0,0 +1,45 @@
+package org.jetbrains.dokka.formats
+
+import org.jetbrains.dokka.*
+import org.jetbrains.dokka.Formats.KotlinFormatDescriptorBase
+
+
+class JavaLayoutHtmlFormatDescriptor : KotlinFormatDescriptorBase() {
+ override val formatServiceClass = JavaLayoutHtmlFormatService::class
+ override val generatorServiceClass = JavaLayoutHtmlFormatGenerator::class
+}
+
+
+class JavaLayoutHtmlFormatService : FormatService {
+ override val extension: String
+ get() = TODO("not implemented")
+
+
+ override fun createOutputBuilder(to: StringBuilder, location: Location): FormattedOutputBuilder {
+ TODO("not implemented")
+ }
+}
+
+class JavaLayoutHtmlFormatOutputBuilder : FormattedOutputBuilder {
+ override fun appendNodes(nodes: Iterable<DocumentationNode>) {
+ TODO("not implemented")
+ }
+}
+
+class JavaLayoutHtmlFormatGenerator : Generator {
+ override fun buildPages(nodes: Iterable<DocumentationNode>) {
+ TODO("not implemented")
+ }
+
+ override fun buildOutlines(nodes: Iterable<DocumentationNode>) {
+ TODO("not implemented")
+ }
+
+ override fun buildSupportFiles() {
+ TODO("not implemented")
+ }
+
+ override fun buildPackageList(nodes: Iterable<DocumentationNode>) {
+ TODO("not implemented")
+ }
+} \ No newline at end of file
diff --git a/core/src/main/kotlin/Formats/StandardFormats.kt b/core/src/main/kotlin/Formats/StandardFormats.kt
index f3d638c6..c0c86f06 100644
--- a/core/src/main/kotlin/Formats/StandardFormats.kt
+++ b/core/src/main/kotlin/Formats/StandardFormats.kt
@@ -13,7 +13,7 @@ abstract class KotlinFormatDescriptorBase : FormatDescriptor {
override val packageDocumentationBuilderClass = KotlinPackageDocumentationBuilder::class
override val javaDocumentationBuilderClass = KotlinJavaDocumentationBuilder::class
- override val generatorServiceClass = FileGenerator::class
+ override val generatorServiceClass: KClass<out Generator> = FileGenerator::class
override val outlineServiceClass: KClass<out OutlineFormatService>? = null
override val sampleProcessingService: KClass<out SampleProcessingService> = DefaultSampleProcessingService::class
override val packageListServiceClass: KClass<out PackageListService>? = DefaultPackageListService::class
diff --git a/core/src/main/resources/dokka/format/java-layout-html.properties b/core/src/main/resources/dokka/format/java-layout-html.properties
new file mode 100644
index 00000000..c5c6bb15
--- /dev/null
+++ b/core/src/main/resources/dokka/format/java-layout-html.properties
@@ -0,0 +1,2 @@
+class=org.jetbrains.dokka.formats.JavaLayoutHtmlFormatDescriptor
+description=Produces Kotlin Style Docs with Javadoc like layout \ No newline at end of file