Skip to content

Commit

Permalink
Update build-docc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
BaherTamer committed Oct 18, 2024
1 parent 9343948 commit b3440b7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .scripts/build-docc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@

cd "$(dirname "$0")/.." || exit

# Clear derived data
DERIVED_DATA_PATH=$(mktemp -d)

# Build the documentation
xcrun xcodebuild docbuild \
-scheme SwiftSafeUI \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath "$DERIVED_DATA_PATH" || exit
-derivedDataPath "$PWD/.derivedData"

xcrun docc process-archive transform-for-static-hosting \
"$DERIVED_DATA_PATH/Build/Products/Debug-iphonesimulator/SwiftSafeUI.doccarchive" \
"$PWD/.derivedData/Build/Products/Debug-iphonesimulator/SwiftSafeUI.doccarchive" \
--output-path ".docs" \
--hosting-base-path "SwiftSafeUI"

echo '<script>window.location.href += "/documentation/swiftsafeui"</script>' > .docs/index.html
echo '<script>window.location.href += "/documentation/swiftsafeui"</script>' > .docs/index.html

0 comments on commit b3440b7

Please sign in to comment.