Skip to content

Commit

Permalink
Fuse iOS Reference site
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Oct 6, 2024
1 parent 0094bb8 commit 0feb9b8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

/site
.DS_Store
/build

#DrawIO Temp files
*.bkp
Expand Down
23 changes: 23 additions & 0 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,34 @@
source ../build-tools/DirectoryTools.sh
source ../build-tools/assertions.sh

assertMac "Mac is required to build Fuse Documentation"

echo "Building Fuse JS Reference Documentation..."
npx typedoc --options typedoc.fusejs.json

echo "Building Fuse Android Reference Documentation..."
spushd ../android
./gradlew :fuse:generateJavadoc
spopd

echo "Building Fuse iOS Reference Documentation..."
spushd ../ios
xcodebuild -quiet -workspace BTFuse.xcworkspace -scheme BTFuse -configuration Release -destination 'generic/platform=iOS' docbuild
xcodebuild -quiet -workspace BTFuse.xcworkspace -scheme BTFuseTestTools -configuration Release -destination 'generic/platform=iOS' docbuild

iosBuild=$(echo "$(xcodebuild -workspace BTFuse.xcworkspace -scheme BTFuse -configuration Release -sdk iphoneos -showBuildSettings | grep -E '^\s*CONFIGURATION_BUILD_DIR =' | awk -F '= ' '{print $2}' | xargs)")
simBuild=$(echo "$(xcodebuild -workspace BTFuse.xcworkspace -scheme BTFuse -configuration Debug -sdk iphonesimulator -showBuildSettings | grep -E '^\s*CONFIGURATION_BUILD_DIR =' | awk -F '= ' '{print $2}' | xargs)")

rm -rf ../docs/build
mkdir -p ../docs/build

rm -rf ../docs/docs/ref/fuse-ios
mkdir -p ../docs/docs/ref/fuse-ios

xcrun docc convert ./Overview.docc --fallback-display-name BTFuse --output-dir ../docs/build/Overview.doccarchive
xcrun docc merge ../docs/build/Overview.doccarchive $iosBuild/BTFuse.doccarchive $iosBuild/BTFuseTestTools.doccarchive --output-path ../docs/docs/ref/fuse-ios
spopd

rm -rf ./docs/ref/fuse-android
cp -r ../android/fuse/build/docs/javadoc ./docs/ref/fuse-android

Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ nav:
- API Reference:
- Fuse JS: ref/fuse-js/index.html
- Fuse Android: ref/fuse-android/index.html
- Fuse iOS: ref/fuse-ios/documentation/overview/index.html

# - API Reference:
# - Index: api-ref/index.md
Expand Down
2 changes: 1 addition & 1 deletion ios/BTFuse.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0feb9b8

Please sign in to comment.