File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools
18
18
19
19
# ruby and jazzy for docs generation
20
20
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
21
- # switch of gem docs building
22
- RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc ; fi
23
- RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy ; fi
21
+ # jazzy no longer works on xenial as ruby is too old.
22
+ RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc; fi
23
+ RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy; fi
24
24
25
25
# tools
26
26
RUN mkdir -p $HOME/.tools
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if [[ "$(uname -s)" == "Linux" ]]; then
26
26
swift build
27
27
fi
28
28
# setup source-kitten if required
29
- source_kitten_source_path=" $root_path /.SourceKitten"
29
+ mkdir -p " $root_path /.build/sourcekitten"
30
+ source_kitten_source_path=" $root_path /.build/sourcekitten/source"
30
31
if [[ ! -d " $source_kitten_source_path " ]]; then
31
32
git clone https://github.com/jpsim/SourceKitten.git " $source_kitten_source_path "
32
33
fi
@@ -36,10 +37,9 @@ if [[ "$(uname -s)" == "Linux" ]]; then
36
37
cd " $source_kitten_source_path " && swift build && cd " $root_path "
37
38
fi
38
39
# generate
39
- mkdir -p " $root_path /.build/sourcekitten"
40
40
for module in " ${modules[@]} " ; do
41
41
if [[ ! -f " $root_path /.build/sourcekitten/$module .json" ]]; then
42
- " $source_kitten_path /sourcekitten" doc --module-name $module > " $root_path /.build/sourcekitten/$module .json"
42
+ " $source_kitten_path /sourcekitten" doc --spm -- module-name $module > " $root_path /.build/sourcekitten/$module .json"
43
43
fi
44
44
done
45
45
fi
You can’t perform that action at this time.
0 commit comments