Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,28 @@ jobs:
run: |
set -eo pipefail
# Clean up any previous build artifacts
rm -rf DocsArchive DocsBuild
rm -rf DerivedData DocsArchive DocsBuild

# Use xcodebuild docbuild to build full documentation including API
# This will create both /documentation/ (API) and /tutorials/ sections
# DOCC_HOSTING_BASE_PATH is set in Xcode project, but we can override via environment
xcodebuild docbuild \
-project XcodeProject/NewNav.xcodeproj \
-scheme NewNav \
-derivedDataPath ./DerivedData \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
DOCC_HOSTING_BASE_PATH="$DOCC_HOSTING_BASE_PATH"

# Find the generated .doccarchive
DOCCARCHIVE=$(find DerivedData -name "*.doccarchive" | head -1)
echo "Found doccarchive at: $DOCCARCHIVE"

# Copy to expected location
mkdir -p DocsArchive
xcrun docc convert XcodeProject/NewNav/Documentation.docc \
--fallback-display-name "NavigationSplitView" \
--fallback-bundle-identifier com.example.NavigationSplitView \
--fallback-bundle-version 1.0 \
--emit-lmdb-index \
--output-path DocsArchive/NavigationSplitView.doccarchive
cp -R "$DOCCARCHIVE" DocsArchive/NavigationSplitView.doccarchive

- name: Prepare static documentation output
run: |
Expand Down