Skip to content

chore: configure Swift Package Index listing - #64

Merged
futamura merged 1 commit into
mainfrom
develop
Aug 20, 2026
Merged

futamura merged 1 commit into
mainfrom
develop

Conversation

@futamura

Copy link
Copy Markdown
Owner

Summary

Prepares the repository for a Swift Package Index listing.

  • .spi.yml — has SPI build and host the DocC documentation for the TLDExtractSwift target. custom_documentation_parameters: [--include-extended-types] is required here: part of the public API is extensions on URL and String, and those symbols are dropped without the flag (the same reason scripts/gen_docs.sh passes -emit-extension-block-symbols). SPI injects the Swift-DocC plugin itself, so Package.swift is unchanged.
  • README — SPI Swift version and platform compatibility badges, grouped with the other distribution badges. They render as unknown until the package is accepted into the index and built for the first time.
  • CHANGELOG — one entry under Unreleased / Added.

The existing GitHub Pages documentation site and docs.yml are untouched; SPI hosting is additive and gives per-version documentation, which Pages does not.

Coordination

Matched with futamura/PunycodeSwift#88, which lands the same .spi.yml shape and badge placement.

Follow-up (not in this PR)

After this and the PunycodeSwift PR are merged to main, a single issue on SwiftPackageIndex/PackageList submits both https://github.com/futamura/PunycodeSwift.git and https://github.com/futamura/TLDExtractSwift.git. Note for that issue: the index already lists the fork MarcoEidinger/TLDExtractSwift, so the canonical repository is not a duplicate submission.

Verification

  • .spi.yml parses as YAML and its keys match SPIManifest.Manifest (version, builder.configs[].documentation_targets, custom_documentation_parameters).
  • No source or manifest changes, so CI coverage is unchanged.

Add .spi.yml so the Swift Package Index builds and hosts the DocC
documentation for the TLDExtractSwift target. Pass
--include-extended-types to the DocC plugin, because part of the public
API is extensions on URL and String and those symbols are dropped
without it. The GitHub Pages site stays as is.

Add the SPI Swift version and platform compatibility badges to the
README, next to the other distribution badges. Both render as unknown
until the package is accepted into the index and built for the first
time.
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@futamura
futamura merged commit 127f2ed into main Aug 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant