From c5a02cf470bfa268f9810102ec61dde2c4fa9b53 Mon Sep 17 00:00:00 2001 From: Daniel Strobusch <1847260+dastrobu@users.noreply.github.com> Date: Sun, 17 Dec 2023 16:07:04 +0100 Subject: [PATCH] add docc plugin (#20) --- Package.swift | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index d2bf1f2..d0f54e4 100644 --- a/Package.swift +++ b/Package.swift @@ -11,10 +11,16 @@ let package = Package( name: "AccelerateArray", targets: ["AccelerateArray"]), ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], + dependencies: { + // https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/ + var deps: [PackageDescription.Package.Dependency] = [] + #if swift(>=5.6.0) + deps.append( + .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0") + ) + #endif + return deps + }(), targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends