-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# 用來檢查是否有產生 Swift-DocC Documentation 路徑 | ||
isDirectoryExist=false | ||
|
||
# 檢查是否有產生 Swift-DocC Documentation,有的話將 isDirectoryExist 設為 true,沒有的話,則設為 false | ||
test -d ./.build/plugins/Swift-DocC/outputs && isDirectoryExist=true || isDirectoryExist=false | ||
|
||
echo $isDirectoryExist | ||
|
||
# 如果 Swift-DocC Documentation 路徑存在的話,則將原先 ./.build 資料夾移除 | ||
if [ isDirectoryExist ]; then | ||
rm -rf ./.build | ||
fi | ||
|
||
swift package generate-documentation --include-extended-types | ||
|
||
# 用來檢查專案根目錄底下,是否已存在 Documentation 資料夾 | ||
isDocumentationFolderExist=false | ||
|
||
# 檢查是否有產生 Documentation 資料夾,有的話將 isDocumentationExist 設為 true,沒有的話,則設為 false | ||
test -d ./Documentation && isDocumentationFolderExist=true || isDocumentationFolderExist=false | ||
|
||
echo $isDocumentationFolderExist | ||
|
||
pwd | ||
|
||
# 如果 Documentation 資料夾不存在的話,則在專案根目錄底下建立 | ||
if [ $isDocumentationFolderExist == false ]; then | ||
mkdir ./Documentation | ||
fi | ||
|
||
cp -r ./.build/plugins/Swift-DocC/outputs/ ./Documentation | ||
xcodebuild docbuild -scheme SwiftHelpers-Package \ | ||
-destination generic/platform=iOS \ | ||
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path SwiftHelpers-Package" |
This file was deleted.
Oops, something went wrong.