blob: d31a34e75dad7319a038e588ecf37b54a3357210 [file] [log] [blame]
<!--
~ Copyright 2016-2017 JetBrains s.r.o.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project name="site" default="site">
<target name="site">
<copy todir="target">
<fileset dir="docs"/>
<fileset dir="../kotlinx-coroutines-core/target/dokka" includes="**/*.md"/>
<fileset dir="../kotlinx-coroutines-jdk8/target/dokka" includes="**/*.md"/>
<fileset dir="../kotlinx-coroutines-nio/target/dokka" includes="**/*.md"/>
<fileset dir="../reactive/kotlinx-coroutines-reactive/target/dokka" includes="**/*.md"/>
<fileset dir="../reactive/kotlinx-coroutines-rx1/target/dokka" includes="**/*.md"/>
<fileset dir="../reactive/kotlinx-coroutines-rx2/target/dokka" includes="**/*.md"/>
<fileset dir="../ui/kotlinx-coroutines-android/target/dokka" includes="**/*.md"/>
<fileset dir="../ui/kotlinx-coroutines-javafx/target/dokka" includes="**/*.md"/>
<fileset dir="../ui/kotlinx-coroutines-swing/target/dokka" includes="**/*.md"/>
</copy>
<antcall target="jekyll"/>
</target>
<target name="checkos">
<condition property="isWindows" value="true">
<os family="windows" />
</condition>
<condition property="isUnix" value="true">
<os family="unix" />
</condition>
</target>
<target name="jekyll" depends="checkos, jekyll.windows, jekyll.unix"/>
<target name="jekyll.windows" if="isWindows">
<exec executable="jekyll.bat" dir="target">
<arg line="build"/>
</exec>
</target>
<target name="jekyll.unix" if="isUnix">
<exec executable="jekyll" dir="target">
<arg line="build"/>
</exec>
</target>
</project>