File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -142,8 +142,9 @@ configure(subprojects.findAll { !unpublished.contains(it.name) }) {
142
142
jdkVersion = 8
143
143
includes = [' README.md' ]
144
144
linkMapping {
145
+ def relPath = rootProject. projectDir. toPath(). relativize(projectDir. toPath())
145
146
dir = " $projectDir /src/main/kotlin"
146
- url = " http://github.com/kotlin/kotlinx.coroutines/tree/master/${ project.name } /src/main/kotlin"
147
+ url = " http://github.com/kotlin/kotlinx.coroutines/tree/master/$r elPath /src/main/kotlin"
147
148
suffix = " #L"
148
149
}
149
150
}
Original file line number Diff line number Diff line change 1
1
2
- task copyDocs (dependsOn : rootProject. getTasksByName(" dokka" , true )) {
3
- copy {
4
- from rootProject. getTasksByName(" dokka" , true ). collect { " $it . project . buildDir /dokka" }
2
+ task copyDocs (type : Copy , dependsOn : rootProject. getTasksByName(" dokka" , true )) {
3
+ from (rootProject. getTasksByName(" dokka" , true ). collect { " $it . project . buildDir /dokka" }) {
5
4
include " **/*.md"
6
- into " $buildDir /gh-pages"
7
- }
8
- copy {
9
- from " docs"
10
- into " $buildDir /gh-pages"
11
5
}
6
+ from " docs"
7
+ into " $buildDir /gh-pages"
12
8
}
13
9
14
10
task site (type : Exec , description : ' Generate github pages' , dependsOn : copyDocs) {
You can’t perform that action at this time.
0 commit comments