Skip to content

Conversation

@euanh
Copy link
Collaborator

@euanh euanh commented May 1, 2025

Motivation

By default, Swift Package Index shows the documentation for the latest release. In release 1.0.0, containertool was still the first target in .spi.yml, which caused the left-hand navigation bar (the curation) to show the topics for containertool even though the main content is the Swift Container Plugin Documentation.

As a temporary work-around, #112 changed links from README.md to point to SPI's documentation for the main branch. This caused the updated .spi.yml to be used and the correct curation to be shown, but also meant that unreleased features could not be documented because the live documentation would diverge from what had been released.

Version 1.0.1 has now been released, with some refactoring and documentation changes. Links in README.md can now safely refer to the most recent release again.

Fixes #113, reverts changes in #112.

Modifications

  • Links from README.md lead to documentation describing the most recent release, not the live state of main.

Result

  • Users will see the documentation for the latest release, with the correct curation panel.
  • Unreleased features can be documented on main without the risk of confusing users looking for documentation for the latest release.

Test Plan

No functional change. Links checked manually.

@euanh euanh added area/documentation Improvements or additions to documentation semver/none No version bump required. labels May 1, 2025
@euanh euanh marked this pull request as ready for review May 1, 2025 09:10
@euanh euanh force-pushed the docs/link-to-latest-release branch from 8d21ecf to f29da3f Compare May 1, 2025 10:56
@euanh euanh force-pushed the docs/link-to-latest-release branch from f29da3f to 1a4797b Compare May 1, 2025 10:57
@euanh euanh merged commit 2a4523b into apple:main May 1, 2025
23 checks passed
@euanh euanh deleted the docs/link-to-latest-release branch May 1, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SPI documentation links should point to the most recent release, not main

1 participant