File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ export LC_CTYPE=en_US.UTF-8
4+
5+ set -o pipefail && xcodebuild clean docbuild -scheme CodeEditKit \
6+ -destination generic/platform=macos \
7+ OTHER_DOCC_FLAGS=" --transform-for-static-hosting --hosting-base-path CodeEditKit --output-path ./docs" | xcpretty
Original file line number Diff line number Diff line change 1111 steps :
1212 - name : Checkout repository
1313 uses : actions/checkout@v1
14- - uses : fwcd/swift-docc-action@v1.0.2
15- with :
16- target : CodeEditKit
17- output : ./docs
18- hosting-base-path : CodeEditKit
19- disable-indexing : ' true'
20- transform-for-static-hosting : ' true'
14+ - name : Build Documentation
15+ run : exec ./.github/scripts/build-docc.sh
2116 - name : Init new repo in dist folder and commit generated files
2217 run : |
2318 cd docs
3429 branch : docs
3530 force : true
3631 directory : ./docs
32+
33+ # ###########################
34+ # #### IMPORTANT NOTICE #####
35+ # ###########################
36+ # This was used to build the documentation catalog until
37+ # it didn't produce the 'documentation' directory anymore.
38+ #
39+ # - uses: fwcd/swift-docc-action@v1.0.2
40+ # with:
41+ # target: CodeEditKit
42+ # output: ./docs
43+ # hosting-base-path: CodeEditKit
44+ # disable-indexing: 'true'
45+ # transform-for-static-hosting: 'true'
46+ #
47+ # The command that this plugin uses is:
48+ #
49+ # swift package --allow-writing-to-directory ./docs generate-documentation \
50+ # --target CodeEditKit
51+ # --output-path ./docs
52+ # --hosting-base-path CodeEditKit
53+ # --disable-indexing
54+ # --transform-for-static-hosting
55+ #
56+ # We now use xcodebuild to build the documentation catalog instead.
57+ #
You can’t perform that action at this time.
0 commit comments