This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e0d8bd  CAMEL-11492: update to the latest Antora Default UI
0e0d8bd is described below

commit 0e0d8bd5c4cafd2f5acececea0ad139bc5f6dbba
Author: Zoran Regvart <[email protected]>
AuthorDate: Sat Dec 15 12:53:56 2018 +0100

    CAMEL-11492: update to the latest Antora Default UI
---
 antora-ui-camel/docs/modules/ROOT/pages/templates.adoc | 9 +++++++++
 antora-ui-camel/src/partials/navigation-explore.hbs    | 4 ++--
 antora-ui-camel/src/partials/page-versions.hbs         | 4 ++--
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/antora-ui-camel/docs/modules/ROOT/pages/templates.adoc 
b/antora-ui-camel/docs/modules/ROOT/pages/templates.adoc
index da823db..8b4a383 100644
--- a/antora-ui-camel/docs/modules/ROOT/pages/templates.adoc
+++ b/antora-ui-camel/docs/modules/ROOT/pages/templates.adoc
@@ -111,6 +111,15 @@ If this is an aspect page, the canonical URL is the URL of 
the primary (non-aspe
 | page.layout
 | The page layout for the current page.
 
+| page.next
+| The next logical page in the navigation tree.
+
+| page.previous
+| The previous logical page in the navigation tree.
+
+| page.parent
+| The parent page in the navigation tree. Will resolve to grandparent if 
parent item is not a page.
+
 | uiRootPath
 | The path to the root directory of the UI.
 
diff --git a/antora-ui-camel/src/partials/navigation-explore.hbs 
b/antora-ui-camel/src/partials/navigation-explore.hbs
index 7db70db..7a6d7ba 100644
--- a/antora-ui-camel/src/partials/navigation-explore.hbs
+++ b/antora-ui-camel/src/partials/navigation-explore.hbs
@@ -2,7 +2,7 @@
   {{#if page.component}}
   <div class="context">
     <span class="title">{{page.component.title}}</span>
-    <span class="version">{{page.version}}</span>
+    <span class="version">{{page.componentVersion.displayVersion}}</span>
   </div>
   {{/if}}
   <ul class="components">
@@ -14,7 +14,7 @@
         <li class="version
           {{~#if (and (eq ../this @root.page.component) (eq this 
@root.page.componentVersion))}} is-current{{/if~}}
           {{~#if (eq this ../latestVersion)}} is-latest{{/if}}">
-          <a href="{{{relativize @root.page.url ./url}}}">{{./version}}</a>
+          <a href="{{{relativize @root.page.url 
./url}}}">{{./displayVersion}}</a>
         </li>
         {{/each}}
       </ul>
diff --git a/antora-ui-camel/src/partials/page-versions.hbs 
b/antora-ui-camel/src/partials/page-versions.hbs
index 9439f83..51f6842 100644
--- a/antora-ui-camel/src/partials/page-versions.hbs
+++ b/antora-ui-camel/src/partials/page-versions.hbs
@@ -1,11 +1,11 @@
 {{#if page.versions}}
 <div class="page-versions">
-  <button class="versions-menu-toggle" title="Show other versions of 
page">{{page.version}}</button>
+  <button class="versions-menu-toggle" title="Show other versions of 
page">{{page.componentVersion.displayVersion}}</button>
   <div class="versions-menu">
     {{#each page.versions}}
     <a class="version
       {{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
-      {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url 
./url}}}">{{./version}}</a>
+      {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url 
./url}}}">{{./displayVersion}}</a>
     {{/each}}
   </div>
 </div>

Reply via email to