Skip to content

Commit 7c77ff6

Browse files
authored
Fix doc generation and jazzy version (#414)
1 parent 1f5b633 commit 7c77ff6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools
1919
# ruby and jazzy for docs generation
2020
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
2121
# switch of gem docs building
22-
RUN echo "gem: --no-document" > ~/.gemrc
23-
RUN if [ "${ubuntu_version}" != "xenial" ] ; then gem install jazzy -v 0.13.7 ; fi
22+
RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc ; fi
23+
RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy ; fi
2424

2525
# tools
2626
RUN mkdir -p $HOME/.tools

Diff for: scripts/generate_docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
3939
mkdir -p "$root_path/.build/sourcekitten"
4040
for module in "${modules[@]}"; do
4141
if [[ ! -f "$root_path/.build/sourcekitten/$module.json" ]]; then
42-
"$source_kitten_path/sourcekitten" doc --spm --module-name $module > "$root_path/.build/sourcekitten/$module.json"
42+
"$source_kitten_path/sourcekitten" doc --module-name $module > "$root_path/.build/sourcekitten/$module.json"
4343
fi
4444
done
4545
fi

0 commit comments

Comments
 (0)