Skip to content

Commit 467a3d1

Browse files
Add support for Swift Package Index document generation
2 parents eeb1565 + d18b72f commit 467a3d1

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
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: ["CachedAsyncImage"]

Package.resolved

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "swift-docc-plugin",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/apple/swift-docc-plugin",
7+
"state" : {
8+
"revision" : "3303b164430d9a7055ba484c8ead67a52f7b74f6",
9+
"version" : "1.0.0"
10+
}
11+
}
12+
],
13+
"version" : 2
14+
}

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:5.6
22

33
import PackageDescription
44

@@ -19,3 +19,10 @@ let package = Package(
1919
.target(name: "CachedAsyncImage")
2020
]
2121
)
22+
23+
#if swift(>=5.6)
24+
// Add the documentation compiler plugin if possible
25+
package.dependencies.append(
26+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
27+
)
28+
#endif

0 commit comments

Comments
 (0)