Skip to content

Commit d629ed7

Browse files
authored
Merge pull request #91 from lukepistrol/fix/docc-generation
Fix/docc generation
2 parents 088f048 + 617d75b commit d629ed7

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

.github/scripts/build-docc.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
export LC_CTYPE=en_US.UTF-8
4+
5+
set -o pipefail && xcodebuild clean docbuild -scheme CodeEditTextView \
6+
-destination generic/platform=macos \
7+
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty

.github/workflows/build-documentation.yml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@ on:
55
- 'main'
66
paths:
77
- 'Sources/**'
8+
workflow_dispatch:
89
jobs:
910
build-docc:
1011
runs-on: macos-12
1112
steps:
1213
- name: Checkout repository
1314
uses: actions/checkout@v1
14-
- uses: fwcd/[email protected]
15-
with:
16-
target: CodeEditTextView
17-
output: ./docs
18-
hosting-base-path: CodeEditTextView
19-
disable-indexing: 'true'
20-
transform-for-static-hosting: 'true'
15+
- name: Build Documentation
16+
run: exec ./.github/scripts/build-docc.sh
2117
- name: Init new repo in dist folder and commit generated files
2218
run: |
2319
cd docs
@@ -34,3 +30,29 @@ jobs:
3430
branch: docs
3531
force: true
3632
directory: ./docs
33+
34+
############################
35+
##### IMPORTANT NOTICE #####
36+
############################
37+
# This was used to build the documentation catalog until
38+
# it didn't produce the 'documentation' directory anymore.
39+
#
40+
# - uses: fwcd/[email protected]
41+
# with:
42+
# target: CodeEditTextView
43+
# output: ./docs
44+
# hosting-base-path: CodeEditTextView
45+
# disable-indexing: 'true'
46+
# transform-for-static-hosting: 'true'
47+
#
48+
# The command that this plugin uses is:
49+
#
50+
# swift package --allow-writing-to-directory ./docs generate-documentation \
51+
# --target CodeEditTextView
52+
# --output-path ./docs
53+
# --hosting-base-path CodeEditTextView
54+
# --disable-indexing
55+
# --transform-for-static-hosting
56+
#
57+
# We now use xcodebuild to build the documentation catalog instead.
58+
#

0 commit comments

Comments
 (0)