Kotlin 如何让Dokka生成可部署的github wiki?
作为构建项目的一部分,我希望让Dokka的maven插件构建一个降价wiki,我可以不经修改地将其部署到github。我可以通过intellij构建降价并查看文档,但我希望直接在我的项目的github wiki中托管它。如果有人知道怎么做,那就太好了 这是我当前的Dokka配置Kotlin 如何让Dokka生成可部署的github wiki?,kotlin,kotlin-dokka,Kotlin,Kotlin Dokka,作为构建项目的一部分,我希望让Dokka的maven插件构建一个降价wiki,我可以不经修改地将其部署到github。我可以通过intellij构建降价并查看文档,但我希望直接在我的项目的github wiki中托管它。如果有人知道怎么做,那就太好了 这是我当前的Dokka配置 <plugin> <groupId>org.jetbrains.dokka</groupId> <artifact
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>0.9.16</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>dokka</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Set to true to skip dokka task, default: false -->
<skip>false</skip>
<outputFormat>gfm</outputFormat>
<!-- Default: ${project.basedir}/target/dokka -->
<outputDir>${project.basedir}/docs/privateurl</outputDir>
<!-- Use default or set to custom path to cache directory to enable package-list caching. -->
<!-- When set to default, caches stored in $USER_HOME/.cache/dokka -->
<cacheRoot>default</cacheRoot>
<!-- List of '.md' files with package and module docs -->
<!-- http://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation -->
<includes>
<file>packages.md</file>
<file>extra.md</file>
</includes>
<!-- Used for linking to JDK, default: 6 -->
<jdkVersion>8</jdkVersion>
<!-- Do not output deprecated members, applies globally, can be overridden by packageOptions -->
<skipDeprecated>true</skipDeprecated>
<!-- Emit warnings about not documented members, applies globally, also can be overridden by packageOptions -->
<reportNotDocumented>false</reportNotDocumented>
<!-- Do not create index pages for empty packages -->
<skipEmptyPackages>true</skipEmptyPackages>
<!-- See platforms section of documentation -->
<impliedPlatforms>
<platform>JVM</platform>
</impliedPlatforms>
<!-- Short form list of sourceRoots, by default, set to ${project.compileSourceRoots} -->
<sourceDirectories>
<dir>src/main</dir>
</sourceDirectories>
<!-- Specifies the location of the project source code on the Web. If provided, Dokka generates "source" links
for each declaration. -->
<sourceLinks>
<link>
<!-- Source directory -->
<dir>${project.basedir}/src/main</dir>
<!-- URL showing where the source code can be accessed through the web browser -->
<url>https://github.com/privateurl</url>
<!--Suffix which is used to append the line number to the URL. Use #L for GitHub -->
<urlSuffix>#L</urlSuffix>
</link>
</sourceLinks>
<!-- No default documentation link to kotlin-stdlib -->
<noStdlibLink>true</noStdlibLink>
</configuration>
</plugin>
org.jetbrains.dokka
DokkaMaven插件
0.9.16
现场前
多卡
假的
gfm
${project.basedir}/docs/privateurl
违约
packages.md
额外医学博士
8.
真的
假的
真的
虚拟机
总工程师/总工程师
${project.basedir}/src/main
https://github.com/privateurl
#L
真的
这告诉dokka生成md文件而不是HTML:
<outputFormat>markdown</outputFormat>
降价
然后你可以将结果推送到github。是的,我现在把它设置为
gfm
,这是github风格的降价。但是它不会产生一个维基,你可以根据链接结构进行真正的浏览,它会为每个功能创建单独的标记文件。你解决了这个问题吗?不是以我想要的方式。我正在考虑分出项目,如果有时间,我自己做