added shell script for docs
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1b82e6b226
commit
08fa7e84d7
24
vds-docs.sh
Normal file
24
vds-docs.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf docsData
|
||||
|
||||
echo "Building DocC documentation for VDS..."
|
||||
|
||||
xcodebuild -project VDS.xcodeproj -derivedDataPath docsData -scheme VDS -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' -parallelizeTargets docbuild
|
||||
|
||||
echo "Copying DocC archives to doc_archives..."
|
||||
|
||||
mkdir doc_archives
|
||||
|
||||
cp -R `find docsData -type d -name "*.doccarchive"` doc_archives
|
||||
|
||||
mkdir docs
|
||||
|
||||
for ARCHIVE in doc_archives/*.doccarchive; do
|
||||
cmd() {
|
||||
echo "$ARCHIVE" | awk -F'.' '{print $1}' | awk -F'/' '{print tolower($2)}'
|
||||
}
|
||||
ARCHIVE_NAME="$(cmd)"
|
||||
echo "Processing Archive: $ARCHIVE"
|
||||
$(xcrun --find docc) process-archive transform-for-static-hosting "$ARCHIVE" --hosting-base-path / --output-path docs/$ARCHIVE_NAME
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user