File tree Expand file tree Collapse file tree 4 files changed +49
-1
lines changed
Expand file tree Collapse file tree 4 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Docs
2+
3+ on : [release]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v2
10+
11+ - name : List directories
12+ run : ls -al
13+
14+ - name : Setup JDK 1.8
15+ uses : actions/setup-java@v1
16+ with :
17+ java-version : 1.8
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : ' 3.x'
23+
24+ - name : Setup Python dependencies
25+ run : pip3 install --upgrade pip && pip3 install -r ./docs/requirements.txt
26+
27+ - name : Generate Docs
28+ run : gradle dokkaGfm
29+
30+ - name : Cleanup existing docs
31+ run : rm -rf docs/docs/docs/api && mkdir docs/docs/api
32+
33+ - name : Copy generated docs
34+ run : cp -r build/dokka/coroutines-network-response-adapter/* docs/docs/docs/api
35+
36+ - name : Build mkdocs website
37+ run : cd ./docs/docs && mkdocs build
Original file line number Diff line number Diff line change 11plugins {
22 id(" org.jetbrains.kotlin.jvm" ).version(" 1.4.10" )
3+ id(" org.jetbrains.dokka" ) version " 1.4.10"
34 maven
45}
56
@@ -34,3 +35,7 @@ dependencies {
3435 testImplementation(" com.squareup.moshi:moshi-kotlin:1.9.2" )
3536 testImplementation(" com.squareup.retrofit2:converter-moshi:$retrofitVersion " )
3637}
38+
39+ tasks.dokkaGfm.configure {
40+ outputDirectory.set(buildDir.resolve(" dokka" ))
41+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 */
99
1010rootProject.name = " coroutines-network-response-adapter"
11+
12+ pluginManagement {
13+ repositories {
14+ gradlePluginPortal()
15+ jcenter()
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments