Skip to content

Commit 51836f2

Browse files
authored
Merge pull request #6 from lukepistrol/fix/build-docc
fix docc generation
2 parents 271feca + b024628 commit 51836f2

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/scripts/build-docc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
xcodebuild clean docbuild -scheme CodeEditLanguages \
4+
-destination generic/platform=macos \
5+
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditLanguages --output-path ./docs"

.github/workflows/build-documentation.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ on:
55
- 'main'
66
paths:
77
- 'Sources/**'
8+
workflow_dispatch:
9+
810
jobs:
911
build-docc:
1012
runs-on: macos-12
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@v1
14-
- uses: fwcd/swift-docc-action@v1.0.2
15-
with:
16-
target: CodeEditLanguages
17-
output: ./docs
18-
hosting-base-path: CodeEditLanguages
19-
disable-indexing: 'true'
20-
transform-for-static-hosting: 'true'
16+
- name: Build Documentation
17+
run: exec ./.github/scripts/build-docc.sh
18+
# - uses: fwcd/swift-docc-action@v1.0.2
19+
# with:
20+
# target: CodeEditLanguages
21+
# output: ./docs
22+
# hosting-base-path: CodeEditLanguages
23+
# disable-indexing: 'true'
24+
# transform-for-static-hosting: 'true'
2125
- name: Init new repo in dist folder and commit generated files
2226
run: |
2327
cd docs

0 commit comments

Comments
 (0)