Skip to content

Commit

Permalink
Update docc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hamiltonalex authored Oct 24, 2024
1 parent 69d35ae commit 5aeb489
Showing 1 changed file with 36 additions and 16 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,41 @@ jobs:
run: |
mkdir -p ./temp_docs
for scheme in DigiMeSDK DigiMeCore DigiMeHealthKit; do
echo "Building documentation for $scheme..."
pwd
ls -la
# Build documentation for DigiMeSDK
echo "Building documentation for DigiMeSDK..."
swift package \
--allow-writing-to-directory ./temp_docs/sdk \
--package-path DigiMeSDK \
generate-documentation \
--target DigiMeSDK \
--output-path ./temp_docs/sdk \
--transform-for-static-hosting \
--hosting-base-path digime-sdk-ios/sdk
# Navigate to package directory
cd $scheme
# Build documentation for DigiMeCore
echo "Building documentation for DigiMeCore..."
swift package \
--allow-writing-to-directory ./temp_docs/core \
--package-path DigiMeCore \
generate-documentation \
--target DigiMeCore \
--output-path ./temp_docs/core \
--transform-for-static-hosting \
--hosting-base-path digime-sdk-ios/core
# Build documentation
swift package --allow-writing-to-directory ../temp_docs/$scheme \
generate-documentation --target $scheme \
--output-path ../temp_docs/$scheme \
--transform-for-static-hosting \
--hosting-base-path digime-sdk-ios/$scheme
cd ..
done
# Build documentation for DigiMeHealthKit
echo "Building documentation for DigiMeHealthKit..."
swift package \
--allow-writing-to-directory ./temp_docs/healthkit \
--package-path DigiMeHealthKit \
generate-documentation \
--target DigiMeHealthKit \
--output-path ./temp_docs/healthkit \
--transform-for-static-hosting \
--hosting-base-path digime-sdk-ios/healthkit
# Create main index.html
cat > ./temp_docs/index.html << 'EOL'
Expand Down Expand Up @@ -69,19 +89,19 @@ jobs:
<div class="library">
<h2>DigiMe SDK</h2>
<p>The main SDK for integrating with DigiMe services.</p>
<p><a href="DigiMeSDK/documentation/digimesdk/">View Documentation</a></p>
<p><a href="sdk/documentation/digimesdk/">View Documentation</a></p>
</div>
<div class="library">
<h2>DigiMe Core</h2>
<p>Core functionality and models used across DigiMe libraries.</p>
<p><a href="DigiMeCore/documentation/digimecore/">View Documentation</a></p>
<p><a href="core/documentation/digimecore/">View Documentation</a></p>
</div>
<div class="library">
<h2>DigiMe HealthKit</h2>
<p>HealthKit integration for DigiMe SDK.</p>
<p><a href="DigiMeHealthKit/documentation/digimehealthkit/">View Documentation</a></p>
<p><a href="healthkit/documentation/digimehealthkit/">View Documentation</a></p>
</div>
</body>
</html>
Expand Down

0 comments on commit 5aeb489

Please sign in to comment.