diff options
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/DokkaGenerator.kt | 59 | ||||
-rw-r--r-- | core/src/main/kotlin/renderers/Renderer.kt | 10 |
2 files changed, 1 insertions, 68 deletions
diff --git a/core/src/main/kotlin/DokkaGenerator.kt b/core/src/main/kotlin/DokkaGenerator.kt index 8661ec45..99041e1b 100644 --- a/core/src/main/kotlin/DokkaGenerator.kt +++ b/core/src/main/kotlin/DokkaGenerator.kt @@ -59,65 +59,6 @@ class DokkaGenerator( renderer.render(transformedPages) } -// fun generate(int: Int) { -// -// logger.debug("Initializing plugins") -// val context = DokkaContext.create(configuration.pluginsClasspath, logger, platforms) -// -// configuration.passesConfigurations.map { pass -> -// AnalysisEnvironment(DokkaMessageCollector(logger), pass.analysisPlatform).run { -// if (analysisPlatform == Platform.jvm) { -// addClasspath(PathUtil.getJdkClassesRootsFromCurrentJre()) -// } -// for (element in pass.classpath) { -// addClasspath(File(element)) -// } -// -// addSources(pass.sourceRoots.map { it.path }) -// -// loadLanguageVersionSettings(pass.languageVersion, pass.apiVersion) -// -// val environment = createCoreEnvironment() -// val (facade, _) = createResolutionFacade(environment) -// -// environment.getSourceFiles().asSequence() -// .map { it.packageFqName } -// .distinct() -// .mapNotNull { facade.resolveSession.getPackageFragment(it) } -// .map { -// DokkaDescriptorVisitor( -// PlatformData( -// pass.analysisPlatform, -// pass.targets -// ), facade -// ) -// .visitPackageFragmentDescriptor(it, DRI.topLevel) -// } -// .toList() -// .let { Module(it) } -// .let { DefaultDocumentationNodeMerger(it) } -// .also { println("${pass.analysisPlatform}:\n${it.pretty()}\n\n") } -// } -// }.let { -// val markdownConverter = DefaultMarkdownToContentConverter(logger) -// DefaultDocumentationToPageTranslator( -// markdownConverter, -// logger -// ).transform( -// DefaultDocumentationNodeMerger( -// it -// ) -// ) -// }.let { -// context[CoreExtensions.pageTransformer].fold(it) { pn, t -> t(pn, context) } -// }.also { -// HtmlRenderer( -// FileWriter(configuration.outputDir, ""), -// DefaultLocationProvider(it, configuration, ".${configuration.format}") -// ).render(it) -// } -// } - private fun createEnvironmentAndFacade(pass: DokkaConfiguration.PassConfiguration): EnvironmentAndFacade = AnalysisEnvironment(DokkaMessageCollector(logger), pass.analysisPlatform).run { if (analysisPlatform == Platform.jvm) { diff --git a/core/src/main/kotlin/renderers/Renderer.kt b/core/src/main/kotlin/renderers/Renderer.kt index 91483a46..271bdf77 100644 --- a/core/src/main/kotlin/renderers/Renderer.kt +++ b/core/src/main/kotlin/renderers/Renderer.kt @@ -1,15 +1,7 @@ package org.jetbrains.dokka.renderers import org.jetbrains.dokka.pages.PageNode -import org.jetbrains.dokka.plugability.DokkaContext interface Renderer { fun render(root: PageNode) -} - -//class Renderers{ -// abstract class Renderer(resolvers: List[Resolver]) -// class HtmlRenderer(list) -// fun toHtml() = { -// new HtmlRenderer(a, b,c) -//}
\ No newline at end of file +}
\ No newline at end of file |