Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: provide link to related latest page for "out of support" pages #230

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ When this event is received, a new Pull Request is created in the https://github

== Development

A static or live preview of the theme is available, run `npm run dev`, or `npm run devlive` to unable the live reload. For more details, see the https://docs.antora.org/antora-ui-default/build-preview-ui/[build-preview-ui] documentation. +
A static or live preview of the theme is available, run `npm run dev`, or `npm run devlive` to enable the live reload. For more details, see the https://docs.antora.org/antora-ui-default/build-preview-ui/[build-preview-ui] documentation. +
⚠️ Note that the live reload does not always work, so use it with caution. A restart of the browser, or running `npx browserslist@latest --update-db` when asked may help.

To build the bundle to be used in the Antora playbook, run `npm run bundle`.
Expand Down
2 changes: 2 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ page:
editUrl: https://example.com/project-bonita/edit/master/index.adoc
origin:
private: false
latest:
url: /bonita/latest/my-page.html
previous:
content: Cards
url: '/bonita/dev/cards.html'
Expand Down
2 changes: 1 addition & 1 deletion src/partials/toolbar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{#if page.attributes.out-of-support}}
<div class="paragraph message-block out-of-support-block">
<p>This documentation is about a version that is <b>out of support</b>, here is the <a
href="{{{page.component.latest.url}}}">latest documentation
href="{{{relativize page.latest.url}}}">latest documentation
version</a>.
</p>
<p>
Expand Down
Loading