SwiftCSV icon indicating copy to clipboard operation
SwiftCSV copied to clipboard

Generate DocC documentation from the package

Open DivineDominion opened this issue 3 years ago • 0 comments

Guide at: https://blog.swiftpackageindex.com/posts/auto-generating-auto-hosting-and-auto-updating-docc-documentation/

Change Package

#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

Add manifest

.spi.yml in project root with:

version: 1
builder:
  configs:
    - documentation_targets: [Target]

DivineDominion avatar Aug 30 '22 09:08 DivineDominion