-
Notifications
You must be signed in to change notification settings - Fork 620
dataconnect: demo: add "dokka" to generate ktdoc #7033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dconeybe/dataconnect/DemoEmulatorExecutableProperty
Are you sure you want to change the base?
dataconnect: demo: add "dokka" to generate ktdoc #7033
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
Summary of ChangesThis pull request integrates the Dokka documentation engine into the Data Connect demo project. This addition allows for the generation of KDoc documentation from the Kotlin source code, including sources generated by Data Connect, making the demo code easier to understand and navigate through generated documentation. Highlights
Changelog
Activity
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds Dokka documentation generation to the Data Connect demo by applying the Dokka plugin, configuring it to include generated sources, and updating CI to produce and upload HTML docs.
- Apply and configure
org.jetbrains.dokka
plugin in the demo module - Enable Dokka V2 experimental plugin mode via
gradle.properties
- Add CI steps to run Dokka and upload generated HTML documentation
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
firebase-dataconnect/demo/gradle.properties | Enable Dokka V2 plugin mode and suppress warnings |
firebase-dataconnect/demo/build.gradle.kts | Add Dokka plugin (v2.0.0) and configure source roots |
.github/workflows/dataconnect_demo_app.yml | Run Dokka in CI and upload HTML output as an artifact |
Comments suppressed due to low confidence (3)
.github/workflows/dataconnect_demo_app.yml:120
- The Gradle task 'dokkaGeneratePublicationHtml' may not exist in Dokka 2.0; you might need to use the built-in 'dokkaHtml' task or confirm the exact task name to prevent CI failures.
dokkaGeneratePublicationHtml
.github/workflows/dataconnect_demo_app.yml:139
- The upload path 'build/dokka/html' might not match Dokka’s actual output directory (often includes the module name); consider using a wildcard (e.g., 'build/dokka/html/**') or verify the folder structure to ensure the artifacts are captured.
path: firebase-dataconnect/demo/build/dokka/html
firebase-dataconnect/demo/gradle.properties:9
- [nitpick] Adding a brief comment to explain these experimental flags (enabling Dokka V2 mode and suppressing warnings) would help future maintainers understand their purpose.
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
Test Results 1 039 files - 57 1 039 suites - 57 35m 15s ⏱️ - 1m 31s For more details on these failures, see this check. Results for commit 0100ff0. ± Comparison against base commit ebe4310. ♻️ This comment has been updated with latest results. |
…to dconeybe/dataconnect/DemoDokka2
Size Report 1Affected Products
Test Logs |
Coverage Report 1This report is too large (211,696 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
Integrates the Dokka documentation engine into the Data Connect demo project. This addition allows for the generation of KDoc documentation from the Kotlin source code, including sources generated by Data Connect.
Highlights
org.jetbrains.dokka
Gradle plugin to thefirebase-dataconnect/demo
module's build file.dataConnect/generatedSources
directory.gradle.properties
to enable Dokka's V2 plugin mode.