swiftcsv / SwiftCSV

CSV parser for Swift
MIT License
956 stars 192 forks source link

Generate DocC documentation from the package #117

Closed DivineDominion closed 1 year ago

DivineDominion commented 2 years ago

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]