Skip to content

Commit

Permalink
Merge pull request #6 from SwiftPackageIndex/docc
Browse files Browse the repository at this point in the history
Add basic docc support
  • Loading branch information
finestructure authored Apr 29, 2022
2 parents 9aa32a6 + e2d0353 commit a0ac209
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 1
builder:
configs:
- platform: macos-spm
documentation_target: SemanticVersion
- platform: watchos
scheme: SemanticVersion-watchOS
scheme: SemanticVersion-watchOS
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "SwiftDocCPlugin",
"repositoryURL": "https://github.com/apple/swift-docc-plugin",
"state": {
"branch": null,
"revision": "3303b164430d9a7055ba484c8ead67a52f7b74f6",
"version": "1.0.0"
}
}
]
},
"version": 1
}
9 changes: 8 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.2
// swift-tools-version:5.3

// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors.
//
Expand Down Expand Up @@ -29,3 +29,10 @@ let package = Package(
.testTarget(name: "SemanticVersionTests", dependencies: ["SemanticVersion"]),
]
)

#if swift(>=5.6)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
)
#endif

0 comments on commit a0ac209

Please sign in to comment.