Skip to content

Commit 122b289

Browse files
committed
fix: Fixes documentation script
1 parent db0f4e7 commit 122b289

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,24 @@ jobs:
2525
- name: Select Xcode 16.4
2626
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
2727

28+
- name: Create output directory
29+
run: mkdir -p ./public
30+
2831
- name: Generate DocC documentation
2932
run: |
3033
swift package \
3134
--allow-writing-to-directory ./public \
3235
generate-documentation \
3336
--target PactKitCore \
34-
--output-path ./public \
37+
--output-path ./public/documentation \
3538
--transform-for-static-hosting \
3639
--hosting-base-path PactKit
3740
41+
- name: Create redirecting index.html
42+
run: |
43+
echo '<!DOCTYPE html>' > ./public/index.html
44+
echo '<meta http-equiv="refresh" content="0; url=documentation/pactkitcore">' >> ./public/index.html
45+
3846
- name: Create .nojekyll file
3947
run: touch ./public/.nojekyll
4048

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
🛡️ **Establish a circle of trust, anywhere.**
44

5-
[![CI Status](https://github.com/ryan-son/PactKit/actions/workflows/swift-ci.yml/badge.svg)](https://github.com/<YourUsername>/PactKit/actions)
5+
[![CI Status](https://github.com/ryan-son/PactKit/actions/workflows/ci.yml/badge.svg)](https://github.com/ryan-son/PactKit/actions)
66

77
A modern, Swift-native, end-to-end security framework for iOS. PactKit allows your app to act as a trusted host, creating secure, ephemeral communication channels with any counterpart.
88

0 commit comments

Comments
 (0)