18
18
my_path=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
19
19
root_path=" $my_path /.."
20
20
version=$( git describe --abbrev=0 --tags || echo " 0.0.0" )
21
- modules=(Lifecycle)
21
+ modules=(Lifecycle LifecycleNIOCompat )
22
22
23
23
if [[ " $( uname -s) " == " Linux" ]]; then
24
24
# build code if required
@@ -31,15 +31,15 @@ if [[ "$(uname -s)" == "Linux" ]]; then
31
31
if [[ ! -d " $source_kitten_source_path " ]]; then
32
32
git clone https://github.com/jpsim/SourceKitten.git " $source_kitten_source_path "
33
33
fi
34
- source_kitten_path=" $source_kitten_source_path /.build/x86_64-unknown-linux/ debug"
34
+ source_kitten_path=" $source_kitten_source_path /.build/debug"
35
35
if [[ ! -d " $source_kitten_path " ]]; then
36
36
rm -rf " $source_kitten_source_path /.swift-version"
37
37
cd " $source_kitten_source_path " && swift build && cd " $root_path "
38
38
fi
39
39
# generate
40
40
for module in " ${modules[@]} " ; do
41
41
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"
43
43
fi
44
44
done
45
45
fi
@@ -59,8 +59,14 @@ It also provides a Signal based shutdown hook, to shutdown on signals like TERM
59
59
SwiftServiceLifecycle is non-framework specific, designed to be integrated with any server framework or directly in an application.
60
60
61
61
To get started with SwiftServiceLifecycle, [`import Lifecycle`](../Lifecycle/index.html).
62
+
63
+ SwiftServiceLifecycle contains multiple modules:
62
64
EOF
63
65
66
+ for module in " ${modules[@]} " ; do
67
+ echo " - [$module ](../$module /index.html)" >> " $module_switcher "
68
+ done
69
+
64
70
# run jazzy
65
71
if ! command -v jazzy > /dev/null; then
66
72
gem install jazzy --no-ri --no-rdoc
0 commit comments