File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
firebase-dataconnect/demo Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,19 @@ jobs:
106
106
set -x
107
107
firebase-dataconnect/demo/gradlew \
108
108
--project-dir firebase-dataconnect/demo \
109
- --no-daemon \
110
109
${{ (inputs.gradleInfoLog && '--info') || '' }} \
111
110
--profile \
112
111
-PdataConnect.demo.firebaseCommand=${{ env.FDC_FIREBASE_COMMAND }} \
113
112
assemble test
114
113
114
+ - name : gradle dokkaGeneratePublicationHtml
115
+ run : |
116
+ set -x
117
+ firebase-dataconnect/demo/gradlew \
118
+ --project-dir firebase-dataconnect/demo \
119
+ ${{ (inputs.gradleInfoLog && '--info') || '' }} \
120
+ dokkaGeneratePublicationHtml
121
+
115
122
- uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
116
123
with :
117
124
name : apks
@@ -126,6 +133,13 @@ jobs:
126
133
if-no-files-found : warn
127
134
compression-level : 9
128
135
136
+ - uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
137
+ with :
138
+ name : ktdoc
139
+ path : firebase-dataconnect/demo/build/dokka/html
140
+ if-no-files-found : warn
141
+ compression-level : 9
142
+
129
143
spotlessCheck :
130
144
continue-on-error : false
131
145
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ plugins {
31
31
// The following code in this "plugins" block can be omitted from customer
32
32
// facing documentation as it is an implementation detail of this application.
33
33
id(" com.diffplug.spotless" ) version " 7.0.0.BETA4"
34
+
35
+ id(" org.jetbrains.dokka" ) version " 2.0.0"
34
36
}
35
37
36
38
dependencies {
@@ -55,6 +57,13 @@ dependencies {
55
57
implementation(" io.kotest.extensions:kotest-property-arbs:2.1.2" )
56
58
}
57
59
60
+ dokka {
61
+ moduleName.set(" Data Connect Demo" )
62
+ dokkaSourceSets.main {
63
+ sourceRoots.from(layout.buildDirectory.dir(" dataConnect/generatedSources/" ).get())
64
+ }
65
+ }
66
+
58
67
// The remaining code in this file can be omitted from customer facing
59
68
// documentation. It's here just to make things compile and/or configure
60
69
// optional components of the build (e.g. spotless code formatting).
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ android.useAndroidX=true
6
6
7
7
org.gradle.jvmargs =-Xmx2g
8
8
9
+ // Use Dokka Gradle Plugin v2, which is technically " experimental"
10
+ // but is fine for our purposes.
11
+ // https://kotlinlang.org/docs/dokka-migration.html
12
+ org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
13
+ org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn =true
14
+
9
15
// The path of the " firebase" command to use.
10
16
// If not specified, then " firebase" is used, resolved using the PATH environment variable.
11
17
// See build.gradle.kts for details.
You can’t perform that action at this time.
0 commit comments