Skip to content

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Apr 25, 2025

Motivation

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

This should be resolved when the next release is tagged, but in the meantime linking to the main branch documentation will cause users to see the most up-to-date documentation with the correct navigation bar.

Modifications

Links to the SPI documentation in README.md point to the main branch.

Result

Users should see the latest documentation, with the correct navigation bar.

Test Plan

No functional change.
All existing tests continue to pass.

@euanh euanh added area/documentation Improvements or additions to documentation semver/none No version bump required. labels Apr 25, 2025
@euanh euanh merged commit e955051 into apple:main Apr 25, 2025
23 checks passed
@euanh euanh deleted the docs/main-spi-branch branch April 25, 2025 14:36
euanh added a commit to euanh/swift-container-plugin that referenced this pull request May 1, 2025
…e#112)

Motivation
----------

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

This should be resolved when the next release is tagged, but in the
meantime linking to the `main` branch documentation will cause users to
see the most up-to-date documentation with the correct navigation bar.

Modifications
-------------

Links to the SPI documentation in `README.md` point to the `main`
branch.

Result
------

Users should see the latest documentation, with the correct navigation
bar.

Test Plan
---------

No functional change.
All existing tests continue to pass.
@euanh euanh mentioned this pull request May 1, 2025
euanh added a commit that referenced this pull request May 1, 2025
Motivation
----------

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

This should be resolved when the next release is tagged, but in the
meantime linking to the `main` branch documentation will cause users to
see the most up-to-date documentation with the correct navigation bar.

Modifications
-------------

Links to the SPI documentation in `README.md` point to the `main`
branch.

Result
------

Users should see the latest documentation, with the correct navigation
bar.

Test Plan
---------

No functional change.
All existing tests continue to pass.
euanh added a commit that referenced this pull request 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.
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.

1 participant