fixed up kdoc after Andrey's changes
This commit is contained in:
@@ -22,7 +22,7 @@ class KDocCompiler() : KotlinCompiler() {
|
|||||||
|
|
||||||
override fun configureEnvironment(environment : CompileEnvironment?, arguments : CompilerArguments?, errStream : PrintStream?) {
|
override fun configureEnvironment(environment : CompileEnvironment?, arguments : CompilerArguments?, errStream : PrintStream?) {
|
||||||
super.configureEnvironment(environment, arguments, errStream)
|
super.configureEnvironment(environment, arguments, errStream)
|
||||||
val coreEnvironment = environment?.getMyEnvironment()
|
val coreEnvironment = environment?.getEnvironment()
|
||||||
if (coreEnvironment != null) {
|
if (coreEnvironment != null) {
|
||||||
val kdoc = KDoc()
|
val kdoc = KDoc()
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class GenerateSiteTest : TestCase() {
|
|||||||
args.setOutputDir("target/classes-stdlib")
|
args.setOutputDir("target/classes-stdlib")
|
||||||
|
|
||||||
val config = args.docConfig
|
val config = args.docConfig
|
||||||
config.docOutputDir = outDir.getPath()!!
|
config.docOutputDir = outDir.getCanonicalPath()!!
|
||||||
config.title = "Kotlin API ($version)"
|
config.title = "Kotlin API ($version)"
|
||||||
config.version = version
|
config.version = version
|
||||||
config.ignorePackages.add("kotlin.support")
|
config.ignorePackages.add("kotlin.support")
|
||||||
@@ -52,7 +52,7 @@ class GenerateSiteTest : TestCase() {
|
|||||||
args.setOutputDir("target/classes-js")
|
args.setOutputDir("target/classes-js")
|
||||||
|
|
||||||
val config = args.docConfig
|
val config = args.docConfig
|
||||||
config.docOutputDir = outDir.getPath()!!
|
config.docOutputDir = outDir.getCanonicalPath()!!
|
||||||
config.title = "Kotlin JS API ($version)"
|
config.title = "Kotlin JS API ($version)"
|
||||||
config.version = version
|
config.version = version
|
||||||
config.ignorePackages.add("java")
|
config.ignorePackages.add("java")
|
||||||
@@ -80,7 +80,7 @@ class GenerateSiteTest : TestCase() {
|
|||||||
|
|
||||||
fun findTemplateDir(): File {
|
fun findTemplateDir(): File {
|
||||||
val path = "src/main/templates"
|
val path = "src/main/templates"
|
||||||
for (p in arrayList(".", "apidocs", "library/apidocs")) {
|
for (p in arrayList(".", "website", "library/website")) {
|
||||||
val sourceDir = File(".", path)
|
val sourceDir = File(".", path)
|
||||||
if (sourceDir.exists()) {
|
if (sourceDir.exists()) {
|
||||||
return sourceDir
|
return sourceDir
|
||||||
|
|||||||
Reference in New Issue
Block a user