Skip to content

Commit d8d0709

Browse files
authored
Merge pull request #7 from lukepistrol/chore/cleanup-build-docc
add documentation comments, improve build-docc.sh script
2 parents a3930e4 + d8d57c1 commit d8d0709

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

.github/scripts/build-docc.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3-
xcodebuild clean docbuild -scheme CodeEditLanguages \
3+
export LC_CTYPE=en_US.UTF-8
4+
5+
set -o pipefail && xcodebuild clean docbuild -scheme CodeEditLanguages \
46
-destination generic/platform=macos \
5-
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditLanguages --output-path ./docs"
7+
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditLanguages --output-path ./docs" | xcpretty

.github/workflows/build-documentation.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ jobs:
1515
uses: actions/checkout@v1
1616
- name: Build Documentation
1717
run: exec ./.github/scripts/build-docc.sh
18-
# - uses: fwcd/[email protected]
19-
# with:
20-
# target: CodeEditLanguages
21-
# output: ./docs
22-
# hosting-base-path: CodeEditLanguages
23-
# disable-indexing: 'true'
24-
# transform-for-static-hosting: 'true'
2518
- name: Init new repo in dist folder and commit generated files
2619
run: |
2720
cd docs
@@ -37,4 +30,30 @@ jobs:
3730
github_token: ${{ secrets.GITHUB_TOKEN }}
3831
branch: docs
3932
force: true
40-
directory: ./docs
33+
directory: ./docs
34+
35+
############################
36+
##### IMPORTANT NOTICE #####
37+
############################
38+
# This was used to build the documentation catalog until
39+
# it didn't produce the 'documentation' directory anymore.
40+
#
41+
# - uses: fwcd/[email protected]
42+
# with:
43+
# target: CodeEditLanguages
44+
# output: ./docs
45+
# hosting-base-path: CodeEditLanguages
46+
# disable-indexing: 'true'
47+
# transform-for-static-hosting: 'true'
48+
#
49+
# The command that this plugin uses is:
50+
#
51+
# swift package --allow-writing-to-directory ./docs generate-documentation \
52+
# --target CodeEditLanguages
53+
# --output-path ./docs
54+
# --hosting-base-path CodeEditLanguages
55+
# --disable-indexing
56+
# --transform-for-static-hosting
57+
#
58+
# We now use xcodebuild to build the documentation catalog instead.
59+
#

0 commit comments

Comments
 (0)