Files
kotlin/libraries/build-docs.xml
2015-05-28 14:38:20 +02:00

28 lines
1.0 KiB
XML

<project name="Kotlin standard library" default="document">
<!-- Generates the standard library documentation using Dokka. -->
<typedef resource="dokka-antlib.xml">
<classpath>
<fileset dir="${dokka.path}/lib">
<include name="*.jar"/>
</fileset>
<!-- used for running locally -->
<pathelement path="${dokka.path}/out/artifacts/dokka.jar"/>
</classpath>
</typedef>
<target name="document">
<delete dir="doc/stdlib"/>
<mkdir dir="doc/stdlib"/>
<dokka src="stdlib/src:../core/builtins:../core/reflection.jvm"
samples="stdlib/test" outputDir="doc" moduleName="stdlib" skipDeprecated="true" outputFormat="kotlin-website"
include="stdlib/src/Module.md">
<sourcelink path=".." url="http://github.com/JetBrains/kotlin/blob/master" linesuffix="#L"/>
</dokka>
</target>
<target name="zip" depends="document">
<zip destfile="target/stdlib-docs.zip" basedir="doc/stdlib"/>
</target>
</project>