Skip to content

Commit 52b83fb

Browse files
Add SPI DocC config (#117)
* Add SPI DocC config * Fix indentation * ❤️ format :)
1 parent b9636b8 commit 52b83fb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.spi.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- documentation_targets: [MQTTNIO]

Package.swift

+7
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ let package = Package(
2727
.testTarget(name: "MQTTNIOTests", dependencies: ["MQTTNIO"]),
2828
]
2929
)
30+
31+
#if swift(>=5.6)
32+
// Add the documentation compiler plugin if possible
33+
package.dependencies.append(
34+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
35+
)
36+
#endif

0 commit comments

Comments
 (0)