We no longer require the docc plugin (#208)

Motivation:

Swift Package Index builds our docs for us and will automatically insert
the dependency.

Modifications:

- Remove the docc-plugin dependency

Result:

Fewer dependencies
This commit is contained in:
George Barnett 2024-10-03 18:09:39 +01:00 committed by GitHub
parent afd169118c
commit dbace16f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,6 @@ let package = Package(
dependencies: [ dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"), .package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"),
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"), .package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
], ],
targets: [ targets: [
.target( .target(

View File

@ -18,6 +18,9 @@ set -eu
raw_targets=$(sed -E -n -e 's/^.* - documentation_targets: \[(.*)\].*$/\1/p' .spi.yml) raw_targets=$(sed -E -n -e 's/^.* - documentation_targets: \[(.*)\].*$/\1/p' .spi.yml)
targets=(${raw_targets//,/ }) targets=(${raw_targets//,/ })
# Add the DocC plugin; the doc checking CI runs on 5.8 so we can't use "swift package add-dependency".
echo 'package.dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"))' >> Package.swift
for target in "${targets[@]}"; do for target in "${targets[@]}"; do
swift package plugin generate-documentation --target "$target" --warnings-as-errors --analyze --level detailed swift package plugin generate-documentation --target "$target" --warnings-as-errors --analyze --level detailed
done done