File tree Expand file tree Collapse file tree 6 files changed +36
-219
lines changed Expand file tree Collapse file tree 6 files changed +36
-219
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/actions/virtual-environments
2+
3+ name : docs
4+
5+ on :
6+ release :
7+ types : [published]
8+ workflow_dispatch :
9+
10+ env :
11+ DEVELOPER_DIR : /Applications/Xcode_15.2.app
12+
13+ jobs :
14+ publish-docs :
15+ name : Publish Documentation
16+ runs-on : macos-13
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Build docs
20+ run : make docs
21+ - name : Deploy
22+ uses : peaceiris/actions-gh-pages@v3
23+ with :
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ publish_dir : docs
Original file line number Diff line number Diff line change @@ -30,3 +30,6 @@ node_modules
3030
3131# # Visual regression test
3232Snapshots
33+
34+ # # Documentation
35+ docs
Original file line number Diff line number Diff line change 1818npm :
1919 npm i
2020
21+ .PHONY : docs
22+ docs :
23+ xcodebuild docbuild \
24+ -scheme PlaybookAccessibilitySnapshot \
25+ -destination generic/platform=iOS \
26+ OTHER_DOCC_FLAGS=" --transform-for-static-hosting --hosting-base-path accessibility-snapshot-ios --output-path docs"
27+
2128.PHONY : fix-readme-links
2229fix-readme-links :
2330 sed -i ' ' -E ' /.?http/!s#(<img src=")([^"]+)#\1$(GITHUB_RAW_CONTENT_PATH)\2#g' README.md
Original file line number Diff line number Diff line change 1717
1818## Usage
1919
20- - [ API Document] ( https://playbook-ui.github.io/accessibility-snapshot-ios )
20+ - [ API Document] ( https://playbook-ui.github.io/accessibility-snapshot-ios/documentation/playbookaccessibilitysnapshot )
2121- [ Example App] ( https://github.com/playbook-ui/accessibility-snapshot-ios/tree/main/Example )
2222
2323---
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments