Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
DocC site generation
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Sep 29, 2024
1 parent 85c9787 commit e429166
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ xcuserdata
/BTFuse.podspec
/BTFuseTestTools.podspec
/Pods
*.docc-build
*.profraw

3 changes: 3 additions & 0 deletions BTFuse.xcworkspace/contents.xcworkspacedata

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

13 changes: 13 additions & 0 deletions BTFuse/BTFuse.docc/BTFuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ``BTFuse``

<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@-->

## Overview

<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->

## Topics

### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->

- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
12 changes: 12 additions & 0 deletions BTFuse/BTFuse.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
94B7A9D02AC89E39003D294D /* BTFuse.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 94A886C22A714F6D0098530D /* BTFuse.framework */; platformFilter = ios; };
94C3AF282B6867B8006AD040 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 94C3AF272B6867B8006AD040 /* LICENSE */; };
94DF9FB72B293C9C00757EA7 /* UniformTypeIdentifiers.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 94DF9FB62B293C9C00757EA7 /* UniformTypeIdentifiers.framework */; };
94F13A1D2CA4EF1800CCCC89 /* BTFuse.docc in Sources */ = {isa = PBXBuildFile; fileRef = 94F13A1C2CA4EF1800CCCC89 /* BTFuse.docc */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -164,6 +165,7 @@
94B7A9CE2AC89E39003D294D /* BTFuseTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BTFuseTests.m; sourceTree = "<group>"; };
94C3AF272B6867B8006AD040 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
94DF9FB62B293C9C00757EA7 /* UniformTypeIdentifiers.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UniformTypeIdentifiers.framework; path = System/Library/Frameworks/UniformTypeIdentifiers.framework; sourceTree = SDKROOT; };
94F13A1C2CA4EF1800CCCC89 /* BTFuse.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = BTFuse.docc; sourceTree = "<group>"; };
C0D504787CFDCC13C7D8462D /* Pods-BTFuse.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BTFuse.release.xcconfig"; path = "Target Support Files/Pods-BTFuse/Pods-BTFuse.release.xcconfig"; sourceTree = "<group>"; };
D2524D348AB6B72B049BC41D /* Pods-BTFuse.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BTFuse.debug.xcconfig"; path = "Target Support Files/Pods-BTFuse/Pods-BTFuse.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -242,6 +244,7 @@
94A8864F2A702C6C0098530D = {
isa = PBXGroup;
children = (
94F13A1C2CA4EF1800CCCC89 /* BTFuse.docc */,
94C3AF272B6867B8006AD040 /* LICENSE */,
944112B92AED442300309527 /* PrivacyInfo.xcprivacy */,
94552C592ACB349A00DAE0F4 /* configurations */,
Expand Down Expand Up @@ -462,6 +465,9 @@
BuildIndependentTargetsInParallel = 1;
LastUpgradeCheck = 1510;
TargetAttributes = {
94A886B52A714F6D0098530D = {
LastSwiftMigration = 1600;
};
94B7A9CB2AC89E39003D294D = {
CreatedOnToolsVersion = 15.0;
};
Expand Down Expand Up @@ -544,6 +550,7 @@
9443F0B12B1AA9550056B054 /* BTFuseNWErrorFactory.m in Sources */,
94A928532B13E4C700AAC44A /* BTFuseAPIServerHeaders.m in Sources */,
94A886BB2A714F6D0098530D /* BTFuseSchemeHandler.m in Sources */,
94F13A1D2CA4EF1800CCCC89 /* BTFuse.docc in Sources */,
9418629D2A9956F100CCFEE1 /* BTFuseAPIRouter.m in Sources */,
9489EB9A2AA54FED0087424D /* BTFuseRuntime.m in Sources */,
94A928572B1A729000AAC44A /* BTFuseIDGenerator.m in Sources */,
Expand Down Expand Up @@ -728,6 +735,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D2524D348AB6B72B049BC41D /* Pods-BTFuse.debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -757,6 +765,8 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
Expand All @@ -765,6 +775,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 94552C5C2ACB3A5600DAE0F4 /* BTFuse.release.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -794,6 +805,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
Expand Down
13 changes: 13 additions & 0 deletions BTFuse/BTFuseTestTools/BTFuseTestTools.docc/BTFuseTestTools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ``BTFuseTestTools``

<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@-->

## Overview

<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->

## Topics

### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->

- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
94C3AF2B2B68681A006AD040 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 94C3AF2A2B68681A006AD040 /* LICENSE */; };
94D499BB2AC9CFEE009917A7 /* BTFuseTestAPIClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 94D499BA2AC9CFEE009917A7 /* BTFuseTestAPIClient.h */; settings = {ATTRIBUTES = (Public, ); }; };
94D499BD2AC9D254009917A7 /* BTFuseTestAPIClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 94D499BC2AC9D254009917A7 /* BTFuseTestAPIClient.m */; };
94F13A1F2CA4EF2C00CCCC89 /* BTFuseTestTools.docc in Sources */ = {isa = PBXBuildFile; fileRef = 94F13A1E2CA4EF2C00CCCC89 /* BTFuseTestTools.docc */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -38,6 +39,7 @@
94C3AF2A2B68681A006AD040 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = "<group>"; };
94D499BA2AC9CFEE009917A7 /* BTFuseTestAPIClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BTFuseTestAPIClient.h; sourceTree = "<group>"; };
94D499BC2AC9D254009917A7 /* BTFuseTestAPIClient.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BTFuseTestAPIClient.m; sourceTree = "<group>"; };
94F13A1E2CA4EF2C00CCCC89 /* BTFuseTestTools.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = BTFuseTestTools.docc; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -78,6 +80,7 @@
947FF0FB2AC8A82E003D09BC = {
isa = PBXGroup;
children = (
94F13A1E2CA4EF2C00CCCC89 /* BTFuseTestTools.docc */,
94C3AF2A2B68681A006AD040 /* LICENSE */,
944112BB2AED44C800309527 /* PrivacyInfo.xcprivacy */,
947FF1072AC8A82E003D09BC /* BTFuseTestTools */,
Expand Down Expand Up @@ -203,6 +206,7 @@
946278462AC8A987008A89FA /* BTFuseTestViewController.m in Sources */,
9462784E2AC8B1AF008A89FA /* BTFuseTestAPIResponse.m in Sources */,
946278522AC8B3EE008A89FA /* BTFuseTestAPIResponseFactory.m in Sources */,
94F13A1F2CA4EF2C00CCCC89 /* BTFuseTestTools.docc in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
3 changes: 3 additions & 0 deletions BTFuse/src/BTFuseContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#import <BTFuse/BTFuse.h>
#import "BTFuseWebviewNavigationDelegate.h"

/**
BTFuseContext is the main context file representing the runtime environment.
*/
@implementation BTFuseContext {
NSMutableDictionary<NSString*, BTFusePlugin*>* $pluginMap;
BTFuseAPIRouter* $apiRouter;
Expand Down
20 changes: 20 additions & 0 deletions Overview.docc/Overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# BTFuse

@Metadata {
@TitleHeading("Title Heading")
@TechnologyRoot
}


This is a summary

## Overview

This is some text

## Topics

### GroupName

Landing
17 changes: 17 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,27 @@ assertLastCall
xcodebuild -quiet -workspace BTFuse.xcworkspace -scheme BTFuseTestTools -configuration Debug -destination "generic/platform=iOS Simulator" build
assertLastCall

echo "Building Documentation..."
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)")
iosTestToolsBuild=$(echo "$(xcodebuild -workspace BTFuse.xcworkspace -scheme BTFuseTestTools -configuration Release -sdk iphoneos -showBuildSettings | grep -E '^\s*CONFIGURATION_BUILD_DIR =' | awk -F '= ' '{print $2}' | xargs)")
simTestToolsBuild=$(echo "$(xcodebuild -workspace BTFuse.xcworkspace -scheme BTFuseTestTools -configuration Debug -sdk iphonesimulator -showBuildSettings | grep -E '^\s*CONFIGURATION_BUILD_DIR =' | awk -F '= ' '{print $2}' | xargs)")

mkdir -p dist/docs/intermediates
mkdir -p dist/docs/out
xcrun docc convert ./Overview.docc --fallback-display-name BTFuse --output-dir dist/docs/intermediates/Overview.doccarchive
xcrun docc merge ./dist/docs/intermediates/Overview.doccarchive $iosBuild/BTFuse.doccarchive $iosBuild/BTFuseTestTools.doccarchive --output-path dist/docs/out/

# intermediatesDir=$iosBuild/../../Intermediates.noindex/
# mkdir -p dist/docs/intermediates/
# cp -r $intermediatesDir/BTFuse.build/Release-iphoneos/BTFuse.build/symbol-graph dist/docs/intermediates
# cp -r $intermediatesDir/BTFuseTestTools.build/Release-iphoneos/BTFuseTestTools.build/symbol-graph dist/docs/intermediates

# xcrun docc convert --output-dir dist/docs/doc.doccarchive --additional-symbol-graph-dir dist/docs/intermediates/x

if [ "$CI" == "true" ]; then
echo "Skipping CodeSign (CI Build)"
else
Expand Down Expand Up @@ -112,6 +128,7 @@ spushd dist
zip -r BTFuse.framework.dSYM.zip BTFuse.framework.dSYM > /dev/null
zip -r BTFuseTestTools.xcframework.zip BTFuseTestTools.xcframework > /dev/null
zip -r BTFuseTestTools.framework.dSYM.zip BTFuseTestTools.framework.dSYM > /dev/null
# tar -czvf dist/docs.tar.gz -C dist/docs .
sha1_compute BTFuse.xcframework.zip
sha1_compute BTFuse.framework.dSYM.zip
sha1_compute BTFuseTestTools.xcframework.zip
Expand Down

0 comments on commit e429166

Please sign in to comment.