Fixed site generation (paths & build script)
diff --git a/build.gradle b/build.gradle
index d11d8eb..d842dcd 100644
--- a/build.gradle
+++ b/build.gradle
@@ -142,8 +142,9 @@
         jdkVersion = 8
         includes = ['README.md']
         linkMapping {
+            def relPath = rootProject.projectDir.toPath().relativize(projectDir.toPath())
             dir = "$projectDir/src/main/kotlin"
-            url = "http://github.com/kotlin/kotlinx.coroutines/tree/master/${project.name}/src/main/kotlin"
+            url = "http://github.com/kotlin/kotlinx.coroutines/tree/master/$relPath/src/main/kotlin"
             suffix = "#L"
         }
     }