-
Notifications
You must be signed in to change notification settings - Fork 3
/
docanalyze.bash
executable file
·28 lines (22 loc) · 979 Bytes
/
docanalyze.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
set -x
rm -rf .build
mkdir -p .build/symbol-graphs
# Lindenmayer.symbols.json LindenmayerViews.symbols.json SceneKitDebugTools@simd.symbols.json
# Lindenmayer@Swift.symbols.json SceneKitDebugTools.symbols.json Squirrel3.symbols.json
# Lindenmayer@simd.symbols.json SceneKitDebugTools@Swift.symbols.json
swift build --target Lindenmayer \
--target LindenmayerViews \
-Xswiftc -emit-symbol-graph \
-Xswiftc -emit-symbol-graph-dir -Xswiftc .build/symbol-graphs
# cull the non-Lindenmayer specific builds from the symbol graph files
rm -f .build/symbol-graphs/SceneKitDebug* .build/symbol-graphs/Squirrel3*
xcrun docc convert Sources/Lindenmayer/Lindenmayer.docc \
--analyze \
--fallback-display-name Lindenmayer \
--fallback-bundle-identifier com.github.heckj.Lindenmayer \
--fallback-bundle-version 0.7.2 \
--additional-symbol-graph-dir .build/symbol-graphs \
--experimental-documentation-coverage \
--level brief