blob: 844fa1a71bd818ed8dbce6622e004fd6f7273f05 [file] [log] [blame] [edit]
<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>