Skip to content

Commit bbebce3

Browse files
authored
fix doc generation setup (swift-server#336)
1 parent 9671de7 commit bbebce3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Package.resolved
44
DerivedData
55
.DS_Store
66
.swiftpm/
7+
.SourceKitten

scripts/generate_docs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
3030
if [[ ! -d "$source_kitten_source_path" ]]; then
3131
git clone https://github.com/jpsim/SourceKitten.git "$source_kitten_source_path"
3232
fi
33-
source_kitten_path="$source_kitten_source_path/.build/x86_64-unknown-linux/debug"
33+
source_kitten_path="$source_kitten_source_path/.build/debug"
3434
if [[ ! -d "$source_kitten_path" ]]; then
3535
rm -rf "$source_kitten_source_path/.swift-version"
3636
cd "$source_kitten_source_path" && swift build && cd "$root_path"
@@ -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 $module > "$root_path/.build/sourcekitten/$module.json"
42+
"$source_kitten_path/sourcekitten" doc --spm --module-name $module > "$root_path/.build/sourcekitten/$module.json"
4343
fi
4444
done
4545
fi

0 commit comments

Comments
 (0)