Skip to content

Commit

Permalink
Update GENERATE_DOCS.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
x-0o0 authored Nov 4, 2023
1 parent 8468b74 commit 1db8927
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions GENERATE_DOCS.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
set -e

# 사전 정의
OUTPUT_DIRECTORY_PATH="./docs"
# 사전 정의 (Definition)
OUTPUT_PATH="./docs"
TARGET_NAME="PackageDocCExample"
HOSTING_BASE_PATH="package-docc-example"
# for `xcodebuild docbuild`
# BUILD_DESTINATION="generic/platform=iOS"
# BUILD_PATH="/tmp/docbuild"
# DOCCARCHIVE_PATH="${BUILD_PATH}/Build/Products/Debug-iphoneos/${TARGET_NAME}.doccarchive"

# 문서 빌드
swift package --allow-writing-to-directory ${OUTPUT_DIRECTORY_PATH} \
# ---------------------
# docc-plugin
# ----------------------
swift package --allow-writing-to-directory ${OUTPUT_PATH} \
generate-documentation --target ${TARGET_NAME} --disable-indexing \
--output-path ${OUTPUT_DIRECTORY_PATH} \
--output-path ${OUTPUT_PATH} \
--transform-for-static-hosting \
--hosting-base-path ${HOSTING_BASE_PATH}

# ---------------------
# xcodebuild
# ----------------------
# xcodebuild docbuild \
# -scheme ${TARGET_NAME} \
# -destination ${BUILD_DESTINATION} \
# -derivedDataPath ${BUILD_PATH}
#
# $(xcrun --find docc) process-archive \
# transform-for-static-hosting ${DOCCARCHIVE_PATH} \
# --hosting-base-path ${HOSTING_BASE_PATH} \
# --output-path ${OUTPUT_PATH}

0 comments on commit 1db8927

Please sign in to comment.