added better tests to check if kdoc stops working again and a few more diagnostics and warnings
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ class GenerateSiteTest : TestCase() {
|
||||
|
||||
// now lets assert that the API docs generated everything
|
||||
assertFilesExist(outDir, "Expected generate API docs are missing - API doc generation failure",
|
||||
"kotlin/package.html", "kotlin/dom/package.html")
|
||||
"kotlin/package-frame.html", "kotlin/dom/package-frame.html", "kotlin/test/package-frame.html")
|
||||
}
|
||||
|
||||
fun testCopyJSApiDocs(): Unit {
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class JavadocStyleHtmlDoclet() : Doclet {
|
||||
}
|
||||
|
||||
|
||||
println("Generating kdoc to $outputDir")
|
||||
println("Generating kdoc to $outputDir excluding packages ${model.config.ignorePackages}")
|
||||
run("allclasses-frame.html", AllClassesFrameTemplate(model, " target=\"classFrame\""))
|
||||
run("allclasses-noframe.html", AllClassesFrameTemplate(model))
|
||||
// run("constant-values.html", ConstantValuesTemplate(model))
|
||||
|
||||
@@ -199,6 +199,8 @@ class KModel(var context: BindingContext, val config: KDocConfig) {
|
||||
val namespaceDescriptor = BindingContextUtils.namespaceDescriptor(context, source)
|
||||
if (namespaceDescriptor != null) {
|
||||
allNamespaces.add(namespaceDescriptor);
|
||||
} else {
|
||||
warning("No NamespaceDescriptor for source $source")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user