Skip to content

Commit

Permalink
Added support for documentation hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Jul 29, 2022
1 parent 005e364 commit c9537e1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 1
builder:
configs:
- documentation_targets: [PianoRoll]
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
}
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ let package = Package(
products: [.library(name: "PianoRoll", targets: ["PianoRoll"])],
targets: [.target(name: "PianoRoll", dependencies: [])]
)

#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 c9537e1

Please sign in to comment.