From f3db3f313c599b84b1a9810723c6a503c0baf7a9 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 30 Nov 2017 19:04:11 +0300 Subject: New format stub --- .../main/kotlin/Formats/JavaLayoutHtmlFormat.kt | 45 ++++++++++++++++++++++ core/src/main/kotlin/Formats/StandardFormats.kt | 2 +- .../dokka/format/java-layout-html.properties | 2 + 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt create mode 100644 core/src/main/resources/dokka/format/java-layout-html.properties 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) { + TODO("not implemented") + } +} + +class JavaLayoutHtmlFormatGenerator : Generator { + override fun buildPages(nodes: Iterable) { + TODO("not implemented") + } + + override fun buildOutlines(nodes: Iterable) { + TODO("not implemented") + } + + override fun buildSupportFiles() { + TODO("not implemented") + } + + override fun buildPackageList(nodes: Iterable) { + 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 = FileGenerator::class override val outlineServiceClass: KClass? = null override val sampleProcessingService: KClass = DefaultSampleProcessingService::class override val packageListServiceClass: KClass? = 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 -- cgit