Skip to content

Commit 7d0722a

Browse files
committed
Support auto doc generation on swiftpackageindex.com
1 parent 2b492e7 commit 7d0722a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.spi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- documentation_targets: [Target]

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ let package = Package(
2525
])
2626
]
2727
)
28+
29+
#if swift(>=5.6)
30+
// Add the documentation compiler plugin if possible
31+
package.dependencies.append(
32+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
33+
)
34+
#endif

0 commit comments

Comments
 (0)