-
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.
Merge pull request #101 from shimastripe/feature/docc
Support docc github documentation
- Loading branch information
Showing
4 changed files
with
70 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy DocC | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "docc" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-14 | ||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_16.0.app/Contents/Developer" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build DocC | ||
run: | | ||
make build_docc | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs | ||
deploy: | ||
runs-on: macos-14 | ||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_16.0.app/Contents/Developer" | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,3 +1,22 @@ | ||
.PHONY: format | ||
format: | ||
xcrun --sdk macosx swift-format swift-format -p -r -i . | ||
xcrun --sdk macosx swift-format swift-format -p -r -i . | ||
|
||
.PHONY: build_docc | ||
build_docc: | ||
swift package \ | ||
--allow-writing-to-directory ./docs \ | ||
generate-documentation \ | ||
--output-path ./docs \ | ||
--disable-indexing \ | ||
--symbol-graph-minimum-access-level internal \ | ||
--include-extended-types \ | ||
--enable-experimental-combined-documentation \ | ||
--target IAPClient \ | ||
--target IAPCore \ | ||
--target IAPInterface \ | ||
--target IAPModel \ | ||
--target IAPView \ | ||
--transform-for-static-hosting \ | ||
--hosting-base-path InAppPurchaseViewer | ||
|
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