Skip to content

Commit 90f1380

Browse files
committed
add docc plugin
1 parent 2db104a commit 90f1380

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Package.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ let package = Package(
1111
name: "AccelerateArray",
1212
targets: ["AccelerateArray"]),
1313
],
14-
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
17-
],
14+
dependencies: {
15+
// https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/
16+
var deps: [PackageDescription.Package.Dependency] = []
17+
#if swift(>=5.6.0)
18+
deps.append(
19+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
20+
)
21+
#endif
22+
return deps
23+
}(),
1824
targets: [
1925
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2026
// Targets can depend on other targets in this package, and on products in packages which this package depends

0 commit comments

Comments
 (0)