You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/08/12 08:32:01 UTC

[camel-website] branch master updated (7c7f94e -> cc07dea)

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

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


    from 7c7f94e  Add camel-quarkus-last-release attribute used in Camel Quarkus docs
     new 6190fda  new: breadcrumbs in antora ui camel
     new b555ae8  fix: breadcrumbs micodata in antora-ui-camel
     new dc35a41  fix: line ending
     new cc07dea  fix: requested changes done

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 antora-ui-camel/src/helpers/add.js                 |  3 ++
 .../src/partials/breadcrumbs-microdata.hbs         | 34 ++++++++++++++++++++++
 antora-ui-camel/src/partials/footer-scripts.hbs    |  3 ++
 3 files changed, 40 insertions(+)
 create mode 100644 antora-ui-camel/src/helpers/add.js
 create mode 100644 antora-ui-camel/src/partials/breadcrumbs-microdata.hbs


[camel-website] 02/04: fix: breadcrumbs micodata in antora-ui-camel

Posted by zr...@apache.org.
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

commit b555ae8ec6c8672d07c952504c18f3a3f26cf196
Author: nayananga@acerubuntu18.04 <na...@gmail.com>
AuthorDate: Sun Aug 11 18:35:40 2019 +0530

    fix: breadcrumbs micodata in antora-ui-camel
---
 antora-ui-camel/src/helpers/add.js                 |  3 +
 .../src/partials/breadcrumbs-microdata.hbs         | 75 ++++++++++------------
 2 files changed, 37 insertions(+), 41 deletions(-)

diff --git a/antora-ui-camel/src/helpers/add.js b/antora-ui-camel/src/helpers/add.js
new file mode 100644
index 0000000..dc294b4
--- /dev/null
+++ b/antora-ui-camel/src/helpers/add.js
@@ -0,0 +1,3 @@
+'use strict'
+
+module.exports = (a, b) => a + b
diff --git a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
index de9d1e1..f34cb82 100644
--- a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
+++ b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
@@ -1,42 +1,35 @@
-{{#if page.breadcrumbs}}{ 
-    "@context": "http://schema.org",
-    "@type": "BreadcrumbList",
-    "itemListElement": [
-    
-    {{#each page.breadcrumbs}} 
-    {{!-- {{#if (and ./title (not (or ./root (eq @root.page.breadcrumbs.0.content ./title))))}}{ 
-        "@type": "ListItem",
-        "position": {{ @index }},
-        "item": "{{{ concat url ./url }}}",
-        "name": "{{{ ./title }}}" }
-    {{/if}} --}}
-    {{#if (and ./url (eq ./urlType 'internal'))~}}{ 
-        "@type": "ListItem",
-        "position": {{ @index }},
-        "item": "{{{ concat url ./url }}}",
-        "name": "{{{ ./content }}}" }
-    {{/if}}
-    {{/each}}
-    ] }
-{{/if}}
-
-
-{{!-- {{#gt (length breadcrumbs) 1}}
-
-<script type="application/ld+json" id="wsa-schema-breadcrumbs"> { 
-    "@context": "http://schema.org",
-    "@type": "BreadcrumbList",
-    "@id": "#BreadcrumbList",
-    "itemListElement": [ 
-    {{#each breadcrumbs}}
+{ 
+"@context": "http://schema.org",
+"@type": "BreadcrumbList",
+"itemListElement": [{
+    "@type": "ListItem",
+    "position": 1,
+    "name": "{{{site.title}}}",
+    "item": "{{{site.url}}}"
+    },
+    {
+    "@type": "ListItem",
+    "position": 2,
+    "name": "{{{page.component.title}}}",
+    "item": "{{{add site.url page.component.url}}}"
+    },
+    {{#if page.breadcrumbs}}
+    {{#each page.breadcrumbs}}
+    {
+    "@type": "ListItem",
+    "position": {{add @index 3}},
+    "name": "{{{ ./content }}}",
+    {{~#if (and ./url (eq ./urlType 'internal'))~}}
+    {{!-- "itme": "{{{relativize @root.page.url ./url}}}" --}}
+    "item": "{{{add ../site.url ./url}}}"
+    {{~else~}}
+    "item": "{{{add ../site.url ../page.component.url}}}"
+    {{~/if~}}
+    }
     {{#unless @last}}
-    {{#unless @FIRST}},
-    {{/unless}} 
-    { "@type": "ListItem",
-    "position": {{add @index 1}},
-    "item": { "@id": "{{{concat url '#Breadcrumb'}}}", 
-    "name": {{{json name}}} } } 
-    {{/unless}} 
-    {{/each}} ] } 
-</script>
-{{/gt}} --}}
\ No newline at end of file
+    ,
+    {{/unless}}
+    {{/each}}
+    {{/if}}
+    ]
+}


[camel-website] 04/04: fix: requested changes done

Posted by zr...@apache.org.
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

commit cc07dea08226f432f29f47c6c76b19030f1295ef
Author: nayananga@acerubuntu18.04 <na...@gmail.com>
AuthorDate: Mon Aug 12 13:53:13 2019 +0530

    fix: requested changes done
---
 antora-ui-camel/src/partials/breadcrumbs-microdata.hbs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
index f34cb82..6c30147 100644
--- a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
+++ b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
@@ -20,7 +20,6 @@
     "position": {{add @index 3}},
     "name": "{{{ ./content }}}",
     {{~#if (and ./url (eq ./urlType 'internal'))~}}
-    {{!-- "itme": "{{{relativize @root.page.url ./url}}}" --}}
     "item": "{{{add ../site.url ./url}}}"
     {{~else~}}
     "item": "{{{add ../site.url ../page.component.url}}}"


[camel-website] 03/04: fix: line ending

Posted by zr...@apache.org.
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

commit dc35a41bb42f2130e02e0a9f7a888cd14fc185af
Author: nayananga@acerubuntu18.04 <na...@gmail.com>
AuthorDate: Sun Aug 11 18:45:16 2019 +0530

    fix: line ending
---
 antora-ui-camel/src/partials/footer-scripts.hbs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/antora-ui-camel/src/partials/footer-scripts.hbs b/antora-ui-camel/src/partials/footer-scripts.hbs
index e38b216..1d94e2a 100644
--- a/antora-ui-camel/src/partials/footer-scripts.hbs
+++ b/antora-ui-camel/src/partials/footer-scripts.hbs
@@ -16,4 +16,4 @@
 </script>
 <script type="application/ld+json">
 {{> breadcrumbs-microdata}}
-</script>
\ No newline at end of file
+</script>


[camel-website] 01/04: new: breadcrumbs in antora ui camel

Posted by zr...@apache.org.
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

commit 6190fda12d47468a4283b77c9489f5e1ec8d1f9a
Author: nayananga@acerubuntu18.04 <na...@gmail.com>
AuthorDate: Sat Aug 10 00:10:53 2019 +0530

    new: breadcrumbs in antora ui camel
---
 .../src/partials/breadcrumbs-microdata.hbs         | 42 ++++++++++++++++++++++
 antora-ui-camel/src/partials/footer-scripts.hbs    |  3 ++
 2 files changed, 45 insertions(+)

diff --git a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
new file mode 100644
index 0000000..de9d1e1
--- /dev/null
+++ b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs
@@ -0,0 +1,42 @@
+{{#if page.breadcrumbs}}{ 
+    "@context": "http://schema.org",
+    "@type": "BreadcrumbList",
+    "itemListElement": [
+    
+    {{#each page.breadcrumbs}} 
+    {{!-- {{#if (and ./title (not (or ./root (eq @root.page.breadcrumbs.0.content ./title))))}}{ 
+        "@type": "ListItem",
+        "position": {{ @index }},
+        "item": "{{{ concat url ./url }}}",
+        "name": "{{{ ./title }}}" }
+    {{/if}} --}}
+    {{#if (and ./url (eq ./urlType 'internal'))~}}{ 
+        "@type": "ListItem",
+        "position": {{ @index }},
+        "item": "{{{ concat url ./url }}}",
+        "name": "{{{ ./content }}}" }
+    {{/if}}
+    {{/each}}
+    ] }
+{{/if}}
+
+
+{{!-- {{#gt (length breadcrumbs) 1}}
+
+<script type="application/ld+json" id="wsa-schema-breadcrumbs"> { 
+    "@context": "http://schema.org",
+    "@type": "BreadcrumbList",
+    "@id": "#BreadcrumbList",
+    "itemListElement": [ 
+    {{#each breadcrumbs}}
+    {{#unless @last}}
+    {{#unless @FIRST}},
+    {{/unless}} 
+    { "@type": "ListItem",
+    "position": {{add @index 1}},
+    "item": { "@id": "{{{concat url '#Breadcrumb'}}}", 
+    "name": {{{json name}}} } } 
+    {{/unless}} 
+    {{/each}} ] } 
+</script>
+{{/gt}} --}}
\ No newline at end of file
diff --git a/antora-ui-camel/src/partials/footer-scripts.hbs b/antora-ui-camel/src/partials/footer-scripts.hbs
index 3adce5f..e38b216 100644
--- a/antora-ui-camel/src/partials/footer-scripts.hbs
+++ b/antora-ui-camel/src/partials/footer-scripts.hbs
@@ -14,3 +14,6 @@
   "description": "Apache Camel ™ is a versatile open-source integration framework based on known Enterprise Integration Patterns. Camel empowers you to define routing and mediation rules in a variety of domain-specific languages, including a Java-based Fluent API, Spring or Blueprint XML Configuration files, and a Scala DSL."
 }
 </script>
+<script type="application/ld+json">
+{{> breadcrumbs-microdata}}
+</script>
\ No newline at end of file