Repository navigation
Conversation
The 5.x-dev branch now exists in all active package repositories. This adds it everywhere the 4.x branch is handled: - New `has_v5` column for the packages table, with `has_v5: false` for the deprecated packages in packages.yml, synced by `package:sync` - 5.x Series column with the CI badge of the 5.x-dev branch on the status page - The documentation of the 5.x-dev branch is fetched and served under /docs/5.x Since 5.x is not stable yet, the `latest` documentation links keep pointing to 4.x. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Packages have documentation for 3.x, 4.x and now 5.x, but the pages didn't
show which version is displayed, and the package lists only link to the
latest version.
- A version switcher above each page lists the versions the package has
documentation for. It links to the same page in the other version, or to
the overview when that version doesn't have the page.
- Pages of an unreleased version (5.x) show a notice that the version is
still in development, with a link to the same page of the current release.
- Every page links to its source file on GitHub ("Edit this page on GitHub"),
on the branch the documentation is fetched from.
The documented versions, their branches and whether they are released are
defined in the new VersionHelper.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Packages have documentation for 3.x, 4.x and, with #239, 5.x. But the pages didn't show which version is displayed, and the package lists only link to the latest version.
https://github.com/joomla-framework/application/edit/4.x-dev/docs/tutorial/index.md.The documented versions, their branches and whether they are released are defined in one place, the new
VersionHelper. A package shows a version when itshas_vNflag is set and the documentation for that version was fetched.To avoid conflicts with #236 and #247 (docs index), the controller and view constructors are unchanged. The view gets the helper through a setter in its service factory, and the controller passes the version and page with
setPage().Testing
I tested with the 3.x and 4.x documentation fetched locally, plus a 5.x copy of the Application docs:
/docs/4.x/application/tutorial/index4.x-dev/docs/tutorial/index.md/docs/5.x/application/overview5.x-dev/docs/overview.md/docs/4.x/registry/overview4.x-dev/docs/overview.mdI haven't viewed the pages in a browser.
🤖 Generated with Claude Code