Skip to content

Commit

Permalink
[추가] 쉘 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
x-0o0 committed Oct 17, 2023
1 parent 2aeb094 commit 6b21342
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions GENERATE_DOCS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set -e

# 사전 정의
OUTPUT_DIRECTORY_PATH="./docs"
TARGET_NAME="PackageDocCExample"
HOSTING_BASE_PATH="package-docc-example"

# 문서 빌드
swift package --allow-writing-to-directory ${OUTPUT_DIRECTORY_PATH} \
generate-documentation --target ${TARGET_NAME} --disable-indexing \
--output-path ${OUTPUT_DIRECTORY_PATH} \
--transform-for-static-hosting \
--hosting-base-path ${HOSTING_BASE_PATH}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,12 @@ $ swift package --allow-writing-to-directory {저장위치} \
| `--output-path {저장위치}` | 문서 파일 저장 위치 |

3. 커밋 후 푸시

### 스크립트로 만들기

`GENERATE_DOCS.sh` 참고

```bash
chmod +x ./GENERATE_DOCS.sh
./GENERATE_DOCS.sh
```

0 comments on commit 6b21342

Please sign in to comment.