好在,搜索了外文文档,找到了对应的方法,特此记录一下,希望可以帮到其他人。
比如我们创建一个文件为packages.md
,内容如下
1 2 3 4 5 | # Package com.secoo.coobox.library.impl 这里填写关于 `com.secoo.coobox.library.impl`的描述信息 ## 这里也是 `com.secoo.coobox.library.impl` 的描述信息哈 |
---|
在对应的模块下的build.gradle
中增加includes.from("packages.md")
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | dokkaHtml { outputDirectory.set(new File(rootDir, "dokkadocs")) // Set module name displayed in the final output moduleName.set("library") dokkaSourceSets { configureEach { // Or source set name, for single-platform the default source sets are `main` and `test` includes.from("packages.md") // 此处省略其他配置 } } |
---|
使用./gradlew dokkaHtml
生成文档文件
includes.from("packages.md", "packages_1.md")
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有