- {{#each (get-tutorial-pages null)}}
-
-
+
+
+
+
+ {{#each (get-tutorial-pages null)}}
+
+
+ {{/each}}
-
+
+
diff --git a/src/partials/body.hbs b/src/partials/body.hbs
index 4a0ac259..1100603a 100644
--- a/src/partials/body.hbs
+++ b/src/partials/body.hbs
@@ -1,4 +1,4 @@
-{{> nav}}
-{{> main}}
+ {{> nav}}
+ {{> main}}
diff --git a/src/partials/feedback-footer.hbs b/src/partials/feedback-footer.hbs
new file mode 100644
index 00000000..0ba5e90d
--- /dev/null
+++ b/src/partials/feedback-footer.hbs
@@ -0,0 +1,31 @@
+
diff --git a/src/partials/feedback.hbs b/src/partials/feedback.hbs
index dce8e4b2..a21188bd 100644
--- a/src/partials/feedback.hbs
+++ b/src/partials/feedback.hbs
@@ -1,30 +1,29 @@
-
- {{#if (eq page.layout 'tutorial')}}
- {{#with (get-page-info)}}
-
- {{/with}}
- {{/if}}
{{#if (and page.fileUri (not env.CI))}}
-
+
+
+ Edit this page
+
+
{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
+
+
+ Edit this page
+
+
{{#with (get-page-info)}}
-
+
+
+ Report an issue
+
+
{{/with}}
-
{{/if}}
+
+
{{#if (not-eq page.title 'Page Not Found')}}
@@ -21,130 +41,60 @@
{{#with page.attributes.box-number}}
{{/with}}
- {{else if (eq page.component.name 'home')}}
+ {{else if (or (eq page.component.name 'home') (eq page.layout 'home'))}}
{{else if (and (eq page.component.name 'imdg') (or (eq page.componentVersion.version '4') (lt page.componentVersion.version '3.12')))}}
@@ -163,51 +113,20 @@
{{else if (and (eq page.component.name 'management-center') (lt page.componentVersion.version '4.2020.12'))}}
@@ -226,17 +145,7 @@
{{else if (and (not-eq page.component.name 'home') (not-eq page.component.name 'cloud'))}}
{{else if (eq page.component.name 'cloud')}}
@@ -306,34 +185,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:management-center-{{page.attributes.latest-supported-mc}}",
- "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:management-center-{{page.attributes.latest-supported-mc}}",
+ "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -342,34 +201,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:management-center-{{site.components.management-center.latest.version}}",
- "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:management-center-{{site.components.management-center.latest.version}}",
+ "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -379,34 +218,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:management-center-{{page.attributes.latest-supported-mc}}",
- "tags:imdg-{{site.components.imdg.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:management-center-{{page.attributes.latest-supported-mc}}",
+ "tags:imdg-{{site.components.imdg.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -415,34 +234,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:management-center-{{site.components.management-center.latest.version}}",
- "tags:imdg-{{site.components.imdg.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:management-center-{{site.components.management-center.latest.version}}",
+ "tags:imdg-{{site.components.imdg.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -450,36 +249,26 @@
{{#if (and (eq page.component.name 'management-center') page.attributes.latest-supported-imdg)}}
@@ -488,34 +277,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:imdg-{{site.components.imdg.latest.version}}",
- "tags:hazelcast-{{page.attributes.latest-supported-hazelcast}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:imdg-{{site.components.imdg.latest.version}}",
+ "tags:hazelcast-{{page.attributes.latest-supported-hazelcast}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -524,34 +293,14 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:imdg-{{site.components.imdg.latest.version}}",
- "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:imdg-{{site.components.imdg.latest.version}}",
+ "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
@@ -561,56 +310,29 @@
function applyFacetedSearch(){
var checkbox = document.getElementById('facet')
if (checkbox.checked) {
- // Search all products
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters:
- [["tags:{{page.component.name}}-{{page.componentVersion.version}}",
- "tags:imdg-{{site.components.imdg.latest.version}}",
- "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
- "tags:cloud"]]
- }
- })
+ hzDocSearch([[
+ "tags:{{page.component.name}}-{{page.componentVersion.version}}",
+ "tags:imdg-{{site.components.imdg.latest.version}}",
+ "tags:hazelcast-{{site.components.hazelcast.latest.version}}",
+ "tags:cloud",
+ ]], 'Search all docs...');
} else {
- docsearch({
- apiKey: '{{site.keys.docsearchApi}}',
- indexName: '{{site.keys.docsearchIndex}}',
- appId: '{{site.keys.docsearchId}}',
- container: '#search-input',
- searchParameters:
- {
-
- facetFilters: ["tags:{{page.component.name}}-{{page.componentVersion.version}}"]
- }
- })
+ hzDocSearch(["tags:{{page.component.name}}-{{page.componentVersion.version}}"]);
}
}
{{/if}}
{{else}}
{{/if}}
+
+
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 1ae994c8..d3d70fe7 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -8,4 +8,36 @@
{{/with}}
+{{#with site.keys.aiSearchId}}
+
+
+
+{{/with}}
+
+
diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs
index ba589002..a5127cce 100644
--- a/src/partials/header-content.hbs
+++ b/src/partials/header-content.hbs
@@ -1,105 +1,36 @@