feat: provide link to related latest page for "out of support" pages #230
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.
Previously, in the "out of support", the link to the "latest" resource was always targeting the home page of the latest version of the component.
Now, the link targets the latest version of the current page when it exists. The template use the "relativize" helper to make the url work with local file browsing
Also update the
model-ui.yml
used for the preview to demonstrate the change.Notes
Closes #203
Additional tests
Tested with preview source
Locally tested with doc-site and test data from bonitasoft/bonita-documentation-site#762:
./build-preview-dev.bash --local-ui-bundle --use-test-sources
Locally tested with doc-site and part of the real bonita doc content
./build-preview-dev.bash --local-ui-bundle -local-sources --use-multi-repositories --component-with-branches bonita:7.11,2022.2