Skip to content
Draft
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/workflows/intelligence-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ jobs:
run: brew install sourcedocs
- name: Build Swift docs
run: |
sourcedocs generate --module-name FlowerIntelligence -- -scheme Flwr -destination 'platform=macOS'
SWIFT_DOCS_DERIVED_DATA="$RUNNER_TEMP/swift-docs-derived-data"
rm -rf "$SWIFT_DOCS_DERIVED_DATA"
sourcedocs generate --module-name FlowerIntelligence -- -project FlowerIntelligenceExamples.xcodeproj -scheme hello-world-cli -destination 'generic/platform=macOS' -derivedDataPath "$SWIFT_DOCS_DERIVED_DATA"
mkdir -p intelligence/docs/source/swift-api-ref
cp -r Documentation/Reference/* intelligence/docs/source/swift-api-ref/
mv intelligence/docs/source/swift-api-ref/README.md intelligence/docs/source/swift-api-ref/index.md
Expand Down
2 changes: 1 addition & 1 deletion intelligence/dev/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cd ts && \

# Build Swift docs
cd .. && \
sourcedocs generate --module-name FlowerIntelligence -- -scheme flower -destination 'platform=macOS' && \
sourcedocs generate --module-name FlowerIntelligence -- -project FlowerIntelligenceExamples.xcodeproj -scheme hello-world-cli -destination 'generic/platform=macOS' && \
mkdir -p intelligence/docs/source/swift-api-ref && \
cp -r Documentation/Reference/* intelligence/docs/source/swift-api-ref/ && \
cd intelligence/docs && \
Expand Down
Loading