Skip to content

Commit e685650

Browse files
committed
fix docs
1 parent d4895d6 commit e685650

4 files changed

Lines changed: 29 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,10 @@ jobs:
134134
run: |
135135
ARTIFACT_NAME=${{ env.ARTIFACT_NAME }}
136136
TEST_RESULTS=$(find ~/Library/Developer/Xcode/DerivedData -name "*.xcresult")
137-
BUILD_RESULTS=$(find ~/Library/Developer/Xcode/DerivedData -name "*.xcactivitylog")
138137
echo ARTIFACT_NAME=${ARTIFACT_NAME// /_} >> $GITHUB_ENV # replace space with underscore
139138
echo TEST_RESULTS=${TEST_RESULTS} >> $GITHUB_ENV
140139
echo "Artifact Name: $ARTIFACT_NAME"
141140
echo "Test Result Location: $TEST_RESULTS"
142-
echo "Build Result Location: $BUILD_RESULTS"
143141
- name: Upload Artifact Logs
144142
if: ${{ failure() }}
145143
uses: actions/upload-artifact@v4

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
22

33
# Docs
44
gem 'jazzy', '0.15.4'
5+
gem 'cgi', '0.5.1'
56

67
# Development
78
gem 'xcpretty', '0.3.0'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ GEM
2323
base64 (0.3.0)
2424
benchmark (0.5.0)
2525
bigdecimal (4.1.1)
26+
cgi (0.5.1)
2627
claide (1.1.0)
2728
cocoapods (1.16.2)
2829
addressable (~> 2.8)
@@ -135,6 +136,7 @@ PLATFORMS
135136
ruby
136137

137138
DEPENDENCIES
139+
cgi (= 0.5.1)
138140
jazzy (= 0.15.4)
139141
plist (= 3.7.1)
140142
rake (= 13.2.1)
@@ -149,6 +151,7 @@ CHECKSUMS
149151
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
150152
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
151153
bigdecimal (4.1.1) sha256=1c09efab961da45203c8316b0cdaec0ff391dfadb952dd459584b63ebf8054ca
154+
cgi (0.5.1) sha256=e93fcafc69b8a934fe1e6146121fa35430efa8b4a4047c4893764067036f18e9
152155
claide (1.1.0) sha256=6d3c5c089dde904d96aa30e73306d0d4bd444b1accb9b3125ce14a3c0183f82e
153156
cocoapods (1.16.2) sha256=0ff1c860f32df3db8b16df09b58da1a6bb2a12fe55f6d5e8be994a74fadd1e5e
154157
cocoapods-core (1.16.2) sha256=4bb1b5c420691e60cf36fa227dec6bc48c096c34c97bb7aa512ea7f3246fc12b

Scripts/jazzy.sh

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1-
mkdir -p ./Parse/Bolts # Create a temporary bolts folder
2-
cp -R Carthage/Checkouts/Bolts-ObjC/Bolts/**/*.h ./Parse/Bolts # Copy bolts
1+
#!/usr/bin/env bash
2+
3+
set -eo pipefail
4+
5+
bolts_headers_dir=""
6+
for candidate in \
7+
"./.build/checkouts/Bolts-ObjC/Bolts" \
8+
"./.build/checkouts/Bolts/Bolts" \
9+
"./build/checkouts/Bolts-ObjC/Bolts" \
10+
"./SourcePackages/checkouts/Bolts-ObjC/Bolts"; do
11+
if [[ -d "$candidate" ]]; then
12+
bolts_headers_dir="$candidate"
13+
break
14+
fi
15+
done
16+
17+
if [[ -z "$bolts_headers_dir" ]]; then
18+
echo "Unable to locate Bolts headers. Resolve SwiftPM dependencies first (for example, run 'swift package resolve')."
19+
exit 1
20+
fi
21+
22+
mkdir -p ./Parse/Bolts
23+
cp -R "$bolts_headers_dir"/. ./Parse/Bolts
24+
trap 'rm -rf ./Parse/Bolts' EXIT
325

426
ver=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Parse/Parse/Resources/Parse-iOS.Info.plist`
5-
set -eo pipefail && bundle exec jazzy \
27+
bundle exec jazzy \
628
--objc \
729
--clean \
830
--author "Parse Community" \
@@ -17,5 +39,3 @@ set -eo pipefail && bundle exec jazzy \
1739
--umbrella-header Parse/Parse/Source/Parse.h \
1840
--framework-root Parse \
1941
--output docs/api
20-
21-
rm -rf ./Parse/Bolts # cleanup temporary bolts

0 commit comments

Comments
 (0)