aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-10-12 23:25:12 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-10-12 23:25:12 +0400
commitba1f12daf927d95a0a8c24c9f3e4a07274451b32 (patch)
tree6cac677106bda18101ddd2266ac158bb5b802ed3 /src/main.kt
parent471039eeb5c1aca11076a17814debce59ac12dcc (diff)
downloaddokka-ba1f12daf927d95a0a8c24c9f3e4a07274451b32.tar.gz
dokka-ba1f12daf927d95a0a8c24c9f3e4a07274451b32.tar.bz2
dokka-ba1f12daf927d95a0a8c24c9f3e4a07274451b32.zip
Cleanup
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.kt b/src/main.kt
index 923b2ea8..742d3815 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -6,8 +6,6 @@ import org.jetbrains.jet.cli.common.messages.*
import org.jetbrains.jet.cli.common.arguments.*
import org.jetbrains.jet.utils.PathUtil
import java.io.File
-import org.jetbrains.jet.lang.resolve.name.FqName
-import org.jetbrains.dokka.DocumentationNode.Kind
class DokkaArguments {
Argument(value = "src", description = "Source file or directory (allows many paths separated by the system path separator)")
@@ -53,12 +51,17 @@ public fun main(args: Array<String>) {
val startAnalyse = System.currentTimeMillis()
val documentation = environment.withContext { environment, module, context ->
+ println("building documentation ... ")
val documentationModule = DocumentationModule("test")
val options = DocumentationOptions()
val documentationBuilder = DocumentationBuilder(context, options)
with(documentationBuilder) {
- documentationModule.appendFiles(environment.getSourceFiles())
+ for (sourceFile in environment.getSourceFiles()) {
+ println(sourceFile.getName())
+ documentationModule.appendFile(sourceFile)
+ }
}
+ print("... resolving links ... ")
documentationBuilder.resolveReferences(documentationModule)
documentationModule
}