fixed bad source links in generated kdoc
This commit is contained in:
@@ -28,6 +28,10 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project-root>${basedir}/../../../</project-root>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ class KModel(var context: BindingContext, val config: KDocConfig) {
|
|||||||
// lets remove the root project directory
|
// lets remove the root project directory
|
||||||
val rootDir = projectRootDir()
|
val rootDir = projectRootDir()
|
||||||
val canonicalFile = File(filePath).getCanonicalPath() ?: ""
|
val canonicalFile = File(filePath).getCanonicalPath() ?: ""
|
||||||
|
//println("=========== root dir for filePath: $canonicalFile is $rootDir")
|
||||||
val relativeFile = if (rootDir != null && canonicalFile.startsWith(rootDir))
|
val relativeFile = if (rootDir != null && canonicalFile.startsWith(rootDir))
|
||||||
canonicalFile.substring(rootDir.length()) else canonicalFile
|
canonicalFile.substring(rootDir.length()) else canonicalFile
|
||||||
if (relativeFile != null) {
|
if (relativeFile != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user