| <project name="Kotlin standard library" default="document"> |
| <!-- Generates the standard library documentation using Dokka. --> |
| <property name="github.revision" value="master"/> |
| |
| <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:../core/runtime.jvm/src/kotlin/jvm/annotations:../core/runtime.jvm/src/kotlin/jvm/JvmClassMapping.kt" |
| 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/${github.revision}" linesuffix="#L"/> |
| </dokka> |
| </target> |
| |
| <target name="zip" depends="document"> |
| <zip destfile="target/stdlib-docs.zip" basedir="doc/stdlib"/> |
| </target> |
| </project> |