Skip to content

Commit b26d731

Browse files
committed
Support building site on windows
1 parent b533112 commit b26d731

File tree

3 files changed

+46
-13
lines changed

3 files changed

+46
-13
lines changed

site/build.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<project name="site" default="site">
2+
<target name="site">
3+
<copy todir="target">
4+
<fileset dir="docs"/>
5+
<fileset dir="../kotlinx-coroutines-core/target/dokka" includes="**/*.md"/>
6+
<fileset dir="../kotlinx-coroutines-jdk8/target/dokka" includes="**/*.md"/>
7+
<fileset dir="../kotlinx-coroutines-nio/target/dokka" includes="**/*.md"/>
8+
<fileset dir="../kotlinx-coroutines-swing/target/dokka" includes="**/*.md"/>
9+
<fileset dir="../kotlinx-coroutines-javafx/target/dokka" includes="**/*.md"/>
10+
<fileset dir="../kotlinx-coroutines-rx/target/dokka" includes="**/*.md"/>
11+
</copy>
12+
<antcall target="jekyll"/>
13+
</target>
14+
15+
<target name="checkos">
16+
<condition property="isWindows" value="true">
17+
<os family="windows" />
18+
</condition>
19+
<condition property="isUnix" value="true">
20+
<os family="unix" />
21+
</condition>
22+
</target>
23+
24+
<target name="jekyll" depends="checkos, jekyll.windows, jekyll.unix"/>
25+
26+
<target name="jekyll.windows" if="isWindows">
27+
<exec executable="jekyll.bat" dir="target">
28+
<arg line="build"/>
29+
</exec>
30+
</target>
31+
32+
<target name="jekyll.unix" if="isUnix">
33+
<exec executable="jekyll" dir="target">
34+
<arg line="build"/>
35+
</exec>
36+
</target>
37+
</project>

site/docs/Gemfile.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ GEM
55
public_suffix (~> 2.0, >= 2.0.2)
66
colorator (1.1.0)
77
ffi (1.9.17)
8+
ffi (1.9.17-x64-mingw32)
89
forwardable-extended (2.6.0)
910
jekyll (3.4.0)
1011
addressable (~> 2.4)
@@ -36,16 +37,22 @@ GEM
3637
rouge (1.11.1)
3738
safe_yaml (1.0.4)
3839
sass (3.4.23)
40+
thread_safe (0.3.5)
41+
tzinfo (1.2.2)
42+
thread_safe (~> 0.1)
43+
tzinfo-data (1.2016.10)
44+
tzinfo (>= 1.0.0)
3945

4046
PLATFORMS
4147
ruby
48+
x64-mingw32
4249

4350
DEPENDENCIES
4451
jekyll (= 3.4.0)
4552
tzinfo-data
4653

4754
RUBY VERSION
48-
ruby 2.0.0p648
55+
ruby 2.2.6p396
4956

5057
BUNDLED WITH
5158
1.14.3

site/pom.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,7 @@
7676
<phase>site</phase>
7777
<configuration>
7878
<tasks>
79-
<copy todir="target">
80-
<fileset dir="docs"/>
81-
<fileset dir="../kotlinx-coroutines-core/target/dokka" includes="**/*.md"/>
82-
<fileset dir="../kotlinx-coroutines-jdk8/target/dokka" includes="**/*.md"/>
83-
<fileset dir="../kotlinx-coroutines-nio/target/dokka" includes="**/*.md"/>
84-
<fileset dir="../kotlinx-coroutines-swing/target/dokka" includes="**/*.md"/>
85-
<fileset dir="../kotlinx-coroutines-javafx/target/dokka" includes="**/*.md"/>
86-
<fileset dir="../kotlinx-coroutines-rx/target/dokka" includes="**/*.md"/>
87-
</copy>
88-
<exec executable="jekyll" dir="target">
89-
<arg line="build"/>
90-
</exec>
79+
<ant target="site"/>
9180
</tasks>
9281
</configuration>
9382
<goals>

0 commit comments

Comments
 (0)