File tree 2 files changed +17
-10
lines changed
2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- uses : eskatos/gradle-command-action@v1
33
33
with :
34
- arguments : build
34
+ arguments : build dokkaHtml
35
35
36
36
release :
37
37
needs : ci
@@ -56,15 +56,19 @@ jobs:
56
56
- name : Generate docs
57
57
uses : eskatos/gradle-command-action@v1
58
58
with :
59
- arguments : dokka
59
+ arguments : dokkaHtml
60
60
61
61
# Ridiculous workaround for https://github.com/Kotlin/dokka/issues/163
62
- - name : Move Dokka's stylesheet into a sensible place
62
+ - name : Move Dokka's assets into a sensible place
63
63
run : |
64
64
set -x -o nounset -o errexit -o pipefail
65
- cd ./build/javadoc
66
- mv ./style.css ./awala-testing/
67
- find . -name '*.html' -print0 | xargs -0 sed -i 's;../style.css;style.css;g'
65
+ cd ./build/dokka/html
66
+ mv ./styles ./images ./scripts navigation.html index.html ./awala-testing/
67
+ find ./awala-testing/ -name '*.html' -print0 | xargs -0 sed -i 's;../styles/;styles/;g'
68
+ find ./awala-testing/ -name '*.html' -print0 | xargs -0 sed -i 's;../images/;images/;g'
69
+ find ./awala-testing/ -name '*.html' -print0 | xargs -0 sed -i 's;../scripts/;scripts/;g'
70
+ find ./awala-testing/ -name '*.html' -print0 | xargs -0 sed -i 's;pathToRoot = "../;pathToRoot = ";g'
71
+ sed -i 's;href="awala-testing/;href=";g' ./awala-testing/navigation.html
68
72
69
73
- name : Setup Node.js
70
74
uses : actions/setup-node@v1
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ buildscript{
11
11
plugins {
12
12
id(" org.jetbrains.kotlin.jvm" ) version " $kotlinVersion "
13
13
id(' java-library' )
14
- id(" org.jetbrains.dokka" ) version " 0.10.0 "
14
+ id(" org.jetbrains.dokka" ) version " 1.4.32 "
15
15
id(" com.diffplug.spotless" ) version " 5.14.0"
16
16
id(' idea' )
17
17
@@ -66,9 +66,12 @@ test {
66
66
67
67
// Documentation
68
68
69
- tasks. dokka {
70
- outputFormat = " html"
71
- outputDirectory = " $buildDir /javadoc"
69
+ dokkaHtml. configure {
70
+ dokkaSourceSets {
71
+ configureEach {
72
+ reportUndocumented. set(true )
73
+ }
74
+ }
72
75
}
73
76
74
77
// Publishing
You can’t perform that action at this time.
0 commit comments