aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
authorMike Hearn <mike@plan99.net>2015-11-23 19:21:08 +0100
committerMike Hearn <mike@plan99.net>2015-11-23 19:21:08 +0100
commit90cf2ebccd12073a55ff6f187e5a378a2e96e23b (patch)
tree2a8575d78618a8b374a35e6e8749968187583e29 /src/main.kt
parent23e270b603eb32472b8ef4a5f44c01af57fd049f (diff)
downloaddokka-90cf2ebccd12073a55ff6f187e5a378a2e96e23b.tar.gz
dokka-90cf2ebccd12073a55ff6f187e5a378a2e96e23b.tar.bz2
dokka-90cf2ebccd12073a55ff6f187e5a378a2e96e23b.zip
Copy style.css to the output directory when doing HTML and use relative paths.
Fixes the code so that the relative path to root is always available, breaking the requirement to use a local web server.
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.kt b/src/main.kt
index ef694981..5a7514c4 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -93,7 +93,7 @@ public fun main(args: Array<String>) {
samples,
includes,
arguments.moduleName,
- arguments.outputDir,
+ arguments.outputDir.let { if (it.endsWith('/')) it else it + '/' },
arguments.outputFormat,
sourceLinks,
arguments.nodeprecated)
@@ -148,7 +148,7 @@ class DokkaGenerator(val logger: DokkaLogger,
val environment = createAnalysisEnvironment()
logger.info("Module: $moduleName")
- logger.info("Output: ${File(outputDir).absolutePath}")
+ logger.info("Output: ${File(outputDir)}")
logger.info("Sources: ${environment.sources.joinToString()}")
logger.info("Classpath: ${environment.classpath.joinToString()}")