Skip to content

Commit

Permalink
Attempts setting up .spi.yml (#70)
Browse files Browse the repository at this point in the history
* Adds DocC plugin

* Adds .spi.yml
  • Loading branch information
simonbs authored May 26, 2022
1 parent a1cbb38 commit 41e5438
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
builder:
configs:
- platform: ios
documentation_targets: [Runestone]
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ let package = Package(
.testTarget(name: "RunestoneTests", dependencies: ["Runestone", "TestTreeSitterLanguages"])
]
)

#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 41e5438

Please sign in to comment.