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 2020/05/28 22:03:06 UTC

[camel-website] branch master updated (548de70 -> da5e8e6)

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 548de70  Align Quarkus extension badges to the left (#376)
     new 6ecd6a4  CAMEL-14578: Reformat files at build time to force compliance with code standards
     new 235b517  update README to include instructions to use format
     new da5e8e6  add formatting for css files within the antora-ui

The 3 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:
 README.md                                          |   3 +
 .../gulp.d/tasks/build-preview-pages.js            |  13 +-
 antora-ui-camel/gulp.d/tasks/build.js              |  46 ++++---
 antora-ui-camel/gulpfile.js                        |  25 +++-
 antora-ui-camel/package.json                       |   1 +
 antora-ui-camel/src/css/base.css                   |   6 +-
 antora-ui-camel/src/css/blog.css                   |  10 +-
 antora-ui-camel/src/css/breadcrumbs.css            |   2 +-
 antora-ui-camel/src/css/category.css               |   2 +-
 antora-ui-camel/src/css/doc.css                    |  12 +-
 antora-ui-camel/src/css/footer.css                 |   4 +-
 antora-ui-camel/src/css/header.css                 |   8 +-
 antora-ui-camel/src/css/nav.css                    |   4 +-
 antora-ui-camel/src/css/print.css                  |   4 +-
 antora-ui-camel/src/css/site.css                   |  48 +++----
 antora-ui-camel/src/css/vars.css                   |   4 +-
 antora-ui-camel/src/helpers/withMenuData.js        |   2 +-
 antora-ui-camel/src/js/01-nav.js                   |   2 +-
 .../src/js/vendor/algoliasearch.bundle.js          | 141 ++++++++++++---------
 19 files changed, 194 insertions(+), 143 deletions(-)


[camel-website] 03/03: add formatting for css files within the antora-ui

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 da5e8e6fb6f8f99680d0a5c2ea3f2bf15e7d44bf
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Mon May 25 23:50:58 2020 +0530

    add formatting for css files within the antora-ui
---
 antora-ui-camel/gulp.d/tasks/build.js   | 32 +++++++++++-----------
 antora-ui-camel/gulpfile.js             | 25 ++++++++++++++---
 antora-ui-camel/src/css/base.css        |  6 +++--
 antora-ui-camel/src/css/blog.css        | 10 +++----
 antora-ui-camel/src/css/breadcrumbs.css |  2 +-
 antora-ui-camel/src/css/category.css    |  2 +-
 antora-ui-camel/src/css/doc.css         | 12 ++++-----
 antora-ui-camel/src/css/footer.css      |  4 +--
 antora-ui-camel/src/css/header.css      |  8 +++---
 antora-ui-camel/src/css/nav.css         |  4 +--
 antora-ui-camel/src/css/print.css       |  4 +--
 antora-ui-camel/src/css/site.css        | 48 ++++++++++++++++-----------------
 antora-ui-camel/src/css/vars.css        |  4 +--
 13 files changed, 89 insertions(+), 72 deletions(-)

diff --git a/antora-ui-camel/gulp.d/tasks/build.js b/antora-ui-camel/gulp.d/tasks/build.js
index b48f5a0..2098d2b 100644
--- a/antora-ui-camel/gulp.d/tasks/build.js
+++ b/antora-ui-camel/gulp.d/tasks/build.js
@@ -82,23 +82,21 @@ module.exports = (src, dest, preview) => () => {
       .pipe(postcss(postcssPlugins))
       .pipe(rev()),
     vfs.src('font/*.{ttf,woff*(2)}', opts),
-    vfs
-      .src('img/**/*.{jpg,ico,png,svg}', opts)
-      .pipe(
-        imagemin([
-          imagemin.gifsicle(),
-          imagemin.jpegtran(),
-          imagemin.optipng(),
-          imagemin.svgo({
-            plugins: [
-              { removeViewBox: false },
-              { cleanupIDs: { remove: false } },
-              { removeTitle: false },
-              { removeDesc: false },
-            ],
-          }),
-        ])
-      ),
+    vfs.src('img/**/*.{jpg,ico,png,svg}', opts).pipe(
+      imagemin([
+        imagemin.gifsicle(),
+        imagemin.jpegtran(),
+        imagemin.optipng(),
+        imagemin.svgo({
+          plugins: [
+            { removeViewBox: false },
+            { cleanupIDs: { remove: false } },
+            { removeTitle: false },
+            { removeDesc: false },
+          ],
+        }),
+      ])
+    ),
     vfs.src('helpers/*.js', opts),
     vfs.src('layouts/*.hbs', opts),
     vfs.src('partials/*.hbs', opts)
diff --git a/antora-ui-camel/gulpfile.js b/antora-ui-camel/gulpfile.js
index 21cc7b2..2872996 100644
--- a/antora-ui-camel/gulpfile.js
+++ b/antora-ui-camel/gulpfile.js
@@ -16,7 +16,12 @@ const serverConfig = { host: '0.0.0.0', port: 5252, livereload }
 const task = require('./gulp.d/tasks')
 const glob = {
   all: [srcDir, previewSrcDir],
-  css: `${srcDir}/css/**/*.css`,
+  lintcss: `${srcDir}/css/**/*.css`,
+  formatcss: [
+    `${srcDir}/css/**/*.css`,
+    `!${srcDir}/css/**/typeface-droid-sans-mono.css`,
+    `!${srcDir}/css/**/typeface-open-sans.css`,
+  ],
   js: ['gulpfile.js', 'gulp.d/**/*.js', `${srcDir}/{helpers,js}/**/*.js`],
 }
 
@@ -29,7 +34,7 @@ const cleanTask = createTask({
 const lintCssTask = createTask({
   name: 'lint:css',
   desc: 'Lint the CSS source files using stylelint (standard config)',
-  call: task.lintCss(glob.css),
+  call: task.lintCss(glob.lintcss),
 })
 
 const lintJsTask = createTask({
@@ -44,12 +49,24 @@ const lintTask = createTask({
   call: parallel(lintCssTask, lintJsTask),
 })
 
-const formatTask = createTask({
-  name: 'format',
+const formatCssTask = createTask({
+  name: 'format:css',
+  desc: 'Format the CSS source files using prettify (Standard Style)',
+  call: task.format(glob.formatcss),
+})
+
+const formatJsTask = createTask({
+  name: 'format:js',
   desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
   call: task.format(glob.js),
 })
 
+const formatTask = createTask({
+  name: 'format',
+  desc: 'Format the JavaScript and CSS source files using prettify',
+  call: parallel(formatCssTask, formatJsTask),
+})
+
 const buildTask = createTask({
   name: 'build',
   desc: 'Build and stage the UI assets for bundling',
diff --git a/antora-ui-camel/src/css/base.css b/antora-ui-camel/src/css/base.css
index 50f505d..75f87a9 100644
--- a/antora-ui-camel/src/css/base.css
+++ b/antora-ui-camel/src/css/base.css
@@ -58,11 +58,13 @@ th {
   font-weight: var(--body-font-weight-bold);
 }
 
-em em { /* stylelint-disable-line */
+em em {
+  /* stylelint-disable-line */
   font-style: normal;
 }
 
-strong strong { /* stylelint-disable-line */
+strong strong {
+  /* stylelint-disable-line */
   font-weight: normal;
 }
 
diff --git a/antora-ui-camel/src/css/blog.css b/antora-ui-camel/src/css/blog.css
index c29a13f..72aedf7 100644
--- a/antora-ui-camel/src/css/blog.css
+++ b/antora-ui-camel/src/css/blog.css
@@ -63,7 +63,7 @@ article.blog p {
   color: var(--color-gray-60);
 }
 
-.blog .post aside p span[rel="author"] {
+.blog .post aside p span[rel='author'] {
   display: inline-block;
 }
 
@@ -77,11 +77,11 @@ article.blog p {
 }
 
 .blog a.arrow.prev::after {
-  content: "\00A0previous";
+  content: '\00A0previous';
 }
 
 .blog a.arrow.next::before {
-  content: "next\00A0";
+  content: 'next\00A0';
 }
 
 .blog .post .post-content {
@@ -159,11 +159,11 @@ article.blog p {
   }
 
   .blog a.arrow.prev::after {
-    content: "";
+    content: '';
   }
 
   .blog a.arrow.next::before {
-    content: "";
+    content: '';
   }
 
   .blog .post .post-content {
diff --git a/antora-ui-camel/src/css/breadcrumbs.css b/antora-ui-camel/src/css/breadcrumbs.css
index be11140..b2c48c6 100644
--- a/antora-ui-camel/src/css/breadcrumbs.css
+++ b/antora-ui-camel/src/css/breadcrumbs.css
@@ -29,7 +29,7 @@ a + .breadcrumbs {
 }
 
 .breadcrumbs li::after {
-  content: "/";
+  content: '/';
   padding: 0 0.5rem;
 }
 
diff --git a/antora-ui-camel/src/css/category.css b/antora-ui-camel/src/css/category.css
index 231e435..dadcbc0 100644
--- a/antora-ui-camel/src/css/category.css
+++ b/antora-ui-camel/src/css/category.css
@@ -1,5 +1,5 @@
 a.category:first-child::before {
-  content: "\2022\00A0\00A0";
+  content: '\2022\00A0\00A0';
 }
 
 a.category:first-child {
diff --git a/antora-ui-camel/src/css/doc.css b/antora-ui-camel/src/css/doc.css
index 34b6406..484b80d 100644
--- a/antora-ui-camel/src/css/doc.css
+++ b/antora-ui-camel/src/css/doc.css
@@ -84,7 +84,7 @@
 .doc h4 .anchor::before,
 .doc h5 .anchor::before,
 .doc h6 .anchor::before {
-  content: "\00a7";
+  content: '\00a7';
 }
 
 .doc h1:hover .anchor,
@@ -419,11 +419,11 @@
 }
 
 .doc ul.checklist i.fa-check-square-o::before {
-  content: "\2713";
+  content: '\2713';
 }
 
 .doc ul.checklist i.fa-square-o::before {
-  content: "\274f";
+  content: '\274f';
 }
 
 .doc .dlist .dlist,
@@ -590,12 +590,12 @@ b.button {
 }
 
 b.button::before {
-  content: "[";
+  content: '[';
   padding-right: 0.25em;
 }
 
 b.button::after {
-  content: "]";
+  content: ']';
   padding-left: 0.25em;
 }
 
@@ -633,7 +633,7 @@ kbd,
 }
 
 .menuseq i.caret::before {
-  content: "\203a";
+  content: '\203a';
   font-size: 1.1em;
   font-weight: var(--body-font-weight-bold);
   line-height: calc(1 / 1.1);
diff --git a/antora-ui-camel/src/css/footer.css b/antora-ui-camel/src/css/footer.css
index ba451dd..3bae8e3 100644
--- a/antora-ui-camel/src/css/footer.css
+++ b/antora-ui-camel/src/css/footer.css
@@ -55,7 +55,7 @@ footer .footer dl dt {
 }
 
 footer .footer dl dt::after {
-  content: "";
+  content: '';
   display: block;
   position: relative;
   bottom: 0;
@@ -87,6 +87,6 @@ footer .footer dl dd {
   padding: 0.4rem;
   background-color: var(--footer-background);
   color: black;
-  border-radius: 0.4rem 0.4rem  0 0;
+  border-radius: 0.4rem 0.4rem 0 0;
   height: 2rem;
 }
diff --git a/antora-ui-camel/src/css/header.css b/antora-ui-camel/src/css/header.css
index 6a1aeb1..dd72474 100644
--- a/antora-ui-camel/src/css/header.css
+++ b/antora-ui-camel/src/css/header.css
@@ -214,7 +214,7 @@ body {
   .navbar-link::after {
     border-width: 0 0 2px 2px;
     border-style: solid;
-    content: " ";
+    content: ' ';
     display: block;
     height: 0.5em;
     position: absolute;
@@ -283,7 +283,7 @@ body {
   .navbar-link::after {
     border-width: 0 0 2px 2px;
     border-style: solid;
-    content: " ";
+    content: ' ';
     display: block;
     height: 0.5em;
     pointer-events: none;
@@ -336,7 +336,7 @@ body {
   .navbar-link::after {
     border-width: 0 0 2px 2px;
     border-style: solid;
-    content: " ";
+    content: ' ';
     display: block;
     height: 0.5em;
     pointer-events: none;
@@ -505,7 +505,7 @@ body {
   }
 
   .navbar-tools .brand-icon {
-    margin: 0.25  rem;
+    margin: 0.25 rem;
   }
 }
 
diff --git a/antora-ui-camel/src/css/nav.css b/antora-ui-camel/src/css/nav.css
index fe2e37b..508a672 100644
--- a/antora-ui-camel/src/css/nav.css
+++ b/antora-ui-camel/src/css/nav.css
@@ -77,7 +77,7 @@ html.is-clipped--nav {
 }
 
 .nav-panel-menu:not(.is-active)::after {
-  content: "";
+  content: '';
   background: rgba(0, 0, 0, 0.5);
   display: block;
   position: absolute;
@@ -161,7 +161,7 @@ html.is-clipped--nav {
 }
 
 /* matches list without a title */
-.nav-item[data-depth="0"] > .nav-list:first-child {
+.nav-item[data-depth='0'] > .nav-list:first-child {
   display: block;
   margin: 0;
 }
diff --git a/antora-ui-camel/src/css/print.css b/antora-ui-camel/src/css/print.css
index d709131..8b11b6c 100644
--- a/antora-ui-camel/src/css/print.css
+++ b/antora-ui-camel/src/css/print.css
@@ -17,8 +17,8 @@
   }
 
   a.bare,
-  a[href^="#"],
-  a[href^="mailto:"] {
+  a[href^='#'],
+  a[href^='mailto:'] {
     text-decoration: none;
   }
 
diff --git a/antora-ui-camel/src/css/site.css b/antora-ui-camel/src/css/site.css
index 3746f40..1a453fd 100644
--- a/antora-ui-camel/src/css/site.css
+++ b/antora-ui-camel/src/css/site.css
@@ -1,24 +1,24 @@
-@import "typeface-open-sans.css";
-@import "typeface-droid-sans-mono.css";
-@import "vars.css";
-@import "base.css";
-@import "body.css";
-@import "nav.css";
-@import "main.css";
-@import "toggle-width.css";
-@import "toolbar.css";
-@import "breadcrumbs.css";
-@import "page-versions.css";
-@import "doc.css";
-@import "static.css";
-@import "header.css";
-@import "footer.css";
-@import "highlight.css";
-@import "frontpage.css";
-@import "print.css";
-@import "pagination.css";
-@import "blog.css";
-@import "category.css";
-@import "release.css";
-@import "misc.css";
-@import "community.css";
+@import 'typeface-open-sans.css';
+@import 'typeface-droid-sans-mono.css';
+@import 'vars.css';
+@import 'base.css';
+@import 'body.css';
+@import 'nav.css';
+@import 'main.css';
+@import 'toggle-width.css';
+@import 'toolbar.css';
+@import 'breadcrumbs.css';
+@import 'page-versions.css';
+@import 'doc.css';
+@import 'static.css';
+@import 'header.css';
+@import 'footer.css';
+@import 'highlight.css';
+@import 'frontpage.css';
+@import 'print.css';
+@import 'pagination.css';
+@import 'blog.css';
+@import 'category.css';
+@import 'release.css';
+@import 'misc.css';
+@import 'community.css';
diff --git a/antora-ui-camel/src/css/vars.css b/antora-ui-camel/src/css/vars.css
index ed710dc..3439135 100644
--- a/antora-ui-camel/src/css/vars.css
+++ b/antora-ui-camel/src/css/vars.css
@@ -30,9 +30,9 @@
   --body-font-size--print: 0.9375em; /* 15px */
   --body-line-height: 1.15;
   --body-font-color: var(--color-jet-50);
-  --body-font-family: "Open Sans", sans-serif;
+  --body-font-family: 'Open Sans', sans-serif;
   --body-font-weight-bold: bold;
-  --monospace-font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace;
+  --monospace-font-family: 'Droid Sans Mono', 'DejaVu Sans Mono', monospace;
   --monospace-font-weight-bold: 500;
   /* base */
   --body-background: var(--color-white);


[camel-website] 02/03: update README to include instructions to use format

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 235b517fff703201347183cccc4e170754b2432e
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Mon May 25 17:22:04 2020 +0530

    update README to include instructions to use format
---
 README.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/README.md b/README.md
index ff23ebe..09a563c 100644
--- a/README.md
+++ b/README.md
@@ -135,8 +135,11 @@ the theme bundle exists in [antora-ui-camel/build/ui-bundle.zip](antora-ui-camel
 To build the website go to the project root directory and run:
 
     $ yarn install # needed only once, or if dependencies change
+    $ yarn format  # to format the code
     $ yarn build   # to perform the build
 
+In case `yarn build` raises error, run `yarn format` to format the code and re-run `yarn build` to build your bundle successfully.
+
 In case `yarn build` throws the error: **JavaScript heap out of memory**, the issue can be resolved by increasing the memory used by node.js by setting `NODE_OPTIONS` environment variable to include `--max_old_space_size`, for example to increase the old space to 4GB do:
 
 ```shell


[camel-website] 01/03: CAMEL-14578: Reformat files at build time to force compliance with code standards

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 6ecd6a4d49147f0867e1a1b5d28a7e068f0b37e2
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Mon May 25 17:03:57 2020 +0530

    CAMEL-14578: Reformat files at build time to force compliance with code standards
---
 .../gulp.d/tasks/build-preview-pages.js            |  13 +-
 antora-ui-camel/gulp.d/tasks/build.js              |  38 +++---
 antora-ui-camel/package.json                       |   1 +
 antora-ui-camel/src/helpers/withMenuData.js        |   2 +-
 antora-ui-camel/src/js/01-nav.js                   |   2 +-
 .../src/js/vendor/algoliasearch.bundle.js          | 141 ++++++++++++---------
 6 files changed, 114 insertions(+), 83 deletions(-)

diff --git a/antora-ui-camel/gulp.d/tasks/build-preview-pages.js b/antora-ui-camel/gulp.d/tasks/build-preview-pages.js
index 03b3537..9a282ed 100644
--- a/antora-ui-camel/gulp.d/tasks/build-preview-pages.js
+++ b/antora-ui-camel/gulp.d/tasks/build-preview-pages.js
@@ -91,13 +91,16 @@ function registerHelpers (src) {
 }
 
 function registerTemplatedHelpers (src) {
-  return vfs.src('helpers/*.js.template', { base: src, cwd: src })
+  return vfs
+    .src('helpers/*.js.template', { base: src, cwd: src })
     .pipe(data(() => ({ manifest: fs.readFileSync('./public/_/data/rev-manifest.json').toString() })))
     .pipe(template())
-    .pipe(map((file, enc, next) => {
-      handlebars.registerHelper(file.stem.replace('.js', ''), requireFromString(file.contents.toString()))
-      next()
-    }))
+    .pipe(
+      map((file, enc, next) => {
+        handlebars.registerHelper(file.stem.replace('.js', ''), requireFromString(file.contents.toString()))
+        next()
+      })
+    )
 }
 
 function compileLayouts (src, layouts) {
diff --git a/antora-ui-camel/gulp.d/tasks/build.js b/antora-ui-camel/gulp.d/tasks/build.js
index 8909a87..b48f5a0 100644
--- a/antora-ui-camel/gulp.d/tasks/build.js
+++ b/antora-ui-camel/gulp.d/tasks/build.js
@@ -77,7 +77,8 @@ module.exports = (src, dest, preview) => () => {
       .pipe(buffer())
       .pipe(terser())
       .pipe(rev()),
-    vfs.src('css/site.css', { ...opts, sourcemaps })
+    vfs
+      .src('css/site.css', { ...opts, sourcemaps })
       .pipe(postcss(postcssPlugins))
       .pipe(rev()),
     vfs.src('font/*.{ttf,woff*(2)}', opts),
@@ -88,29 +89,36 @@ module.exports = (src, dest, preview) => () => {
           imagemin.gifsicle(),
           imagemin.jpegtran(),
           imagemin.optipng(),
-          imagemin.svgo({ plugins: [
-            { removeViewBox: false },
-            { cleanupIDs: { remove: false } },
-            { removeTitle: false },
-            { removeDesc: false },
-          ] }),
+          imagemin.svgo({
+            plugins: [
+              { removeViewBox: false },
+              { cleanupIDs: { remove: false } },
+              { removeTitle: false },
+              { removeDesc: false },
+            ],
+          }),
         ])
       ),
     vfs.src('helpers/*.js', opts),
     vfs.src('layouts/*.hbs', opts),
     vfs.src('partials/*.hbs', opts)
-  ).pipe(vfs.dest(dest, { sourcemaps: sourcemaps && '.' }))
+  )
+    .pipe(vfs.dest(dest, { sourcemaps: sourcemaps && '.' }))
     .pipe(rev.manifest())
     .pipe(vfs.dest(path.join(dest, 'data')))
-    .pipe(map((file, enc, next) => {
-      manifest = file.contents.toString()
-      next(null, null)
-    }))
+    .pipe(
+      map((file, enc, next) => {
+        manifest = file.contents.toString()
+        next(null, null)
+      })
+    )
     .pipe(vfs.src('helpers/*.js.template', opts))
     .pipe(data(() => ({ manifest: manifest })))
     .pipe(template())
-    .pipe(rename((path) => {
-      path.extname = '' // strip .template
-    }))
+    .pipe(
+      rename((path) => {
+        path.extname = '' // strip .template
+      })
+    )
     .pipe(vfs.dest(dest))
 }
diff --git a/antora-ui-camel/package.json b/antora-ui-camel/package.json
index 0333c7f..67e3918 100644
--- a/antora-ui-camel/package.json
+++ b/antora-ui-camel/package.json
@@ -15,6 +15,7 @@
   ],
   "scripts": {
     "build": "gulp bundle",
+    "format": "gulp format",
     "preview": "gulp preview"
   },
   "devDependencies": {
diff --git a/antora-ui-camel/src/helpers/withMenuData.js b/antora-ui-camel/src/helpers/withMenuData.js
index 3bd96e3..5d179c4 100644
--- a/antora-ui-camel/src/helpers/withMenuData.js
+++ b/antora-ui-camel/src/helpers/withMenuData.js
@@ -25,7 +25,7 @@ const createMenu = (item) => {
   }
 }
 
-const menuData = mainMenu.filter((item) => (typeof (item.parent) === 'undefined')).map(createMenu)
+const menuData = mainMenu.filter((item) => typeof item.parent === 'undefined').map(createMenu)
 
 module.exports = (options) => {
   const siteRootPath = options.data.root.siteRootPath
diff --git a/antora-ui-camel/src/js/01-nav.js b/antora-ui-camel/src/js/01-nav.js
index 6a5f64f..d993125 100644
--- a/antora-ui-camel/src/js/01-nav.js
+++ b/antora-ui-camel/src/js/01-nav.js
@@ -89,7 +89,7 @@
     var rect = panel.getBoundingClientRect()
     var effectiveHeight = rect.height
     var navStyle = window.getComputedStyle(nav)
-    if (navStyle.position === 'sticky') effectiveHeight -= (rect.top - parseFloat(navStyle.top))
+    if (navStyle.position === 'sticky') effectiveHeight -= rect.top - parseFloat(navStyle.top)
     panel.scrollTop = Math.max(0, (el.getBoundingClientRect().height - effectiveHeight) * 0.5 + el.offsetTop)
   }
 
diff --git a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
index 743092d..e92c1a8 100644
--- a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
+++ b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
@@ -25,82 +25,101 @@
       }
     }
 
-    search.addEventListener('keyup', debounce((key) => {
-      if (search.value.trim() === '') {
-        container.className = 'navbar-search results-hidden'
-        results.innerHTML = ''
-        cancel.style.display = 'none'
-        return
-      }
-      if (key.which === 27) {
-        container.className = 'navbar-search results-hidden'
-        results.innerHTML = ''
-        return
-      }
-      cancel.style.display = 'block'
-      index.search(search.value, {
-        hitsPerPage: 10,
-      })
-        .then((results) => {
-          const hits = results.hits
-          const data = hits.reduce((data, hit) => {
-            const d = {}
-            d.url = hit.url
-            var breadcrumbs = Object.values(hit.hierarchy).slice(1).filter((lvl) => lvl !== null).join(' &raquo; ')
-            if (breadcrumbs !== '') {
-              d.breadcrumbs = breadcrumbs
-            } else {
-              d.breadcrumbs = hit.hierarchy.lvl0
-            }
-            if (hit._snippetResult !== undefined) {
-              d.snippet = hit._snippetResult.content.value
-            } else {
-              d.snippet = ''
-            }
+    search.addEventListener(
+      'keyup',
+      debounce((key) => {
+        if (search.value.trim() === '') {
+          container.className = 'navbar-search results-hidden'
+          results.innerHTML = ''
+          cancel.style.display = 'none'
+          return
+        }
+        if (key.which === 27) {
+          container.className = 'navbar-search results-hidden'
+          results.innerHTML = ''
+          return
+        }
+        cancel.style.display = 'block'
+        index
+          .search(search.value, {
+            hitsPerPage: 10,
+          })
+          .then((results) => {
+            const hits = results.hits
+            const data = hits.reduce((data, hit) => {
+              const d = {}
+              d.url = hit.url
+              var breadcrumbs = Object.values(hit.hierarchy)
+                .slice(1)
+                .filter((lvl) => lvl !== null)
+                .join(' &raquo; ')
+              if (breadcrumbs !== '') {
+                d.breadcrumbs = breadcrumbs
+              } else {
+                d.breadcrumbs = hit.hierarchy.lvl0
+              }
+              if (hit._snippetResult !== undefined) {
+                d.snippet = hit._snippetResult.content.value
+              } else {
+                d.snippet = ''
+              }
 
-            const section = hit.hierarchy.lvl0
-            data[section] = data[section] || []
-            data[section].push(d)
+              const section = hit.hierarchy.lvl0
+              data[section] = data[section] || []
+              data[section].push(d)
 
-            return data
-          }, {})
+              return data
+            }, {})
 
-          return data
-        })
-        .then((data) => {
-          if (Object.entries(data).length === 0 && data.constructor === Object) {
-            return `
+            return data
+          })
+          .then((data) => {
+            if (Object.entries(data).length === 0 && data.constructor === Object) {
+              return `
               <header class="no_search_results">Nothing Found</header>
               `
-          } else {
-            return `
+            } else {
+              return `
               <dl>
-                ${Object.keys(data).map((section) => `
+                ${Object.keys(data)
+    .map(
+      (section) => `
                   <dt>${section}</dt>
-                  ${data[section].map((hit) => `
+                  ${data[section]
+    .map(
+      (hit) => `
                     <a href="${hit.url}">
                       <dd>
                         <header class="result_header">${hit.breadcrumbs}</header>
                         <summary class="result_summary">${hit.snippet}</summary>
                       </dd>
                     </a>
-                  `).join('')}
-                `).join('')}
+                  `
+    )
+    .join('')}
+                `
+    )
+    .join('')}
               </dl>
               `
-          }
-        })
-        .then((markup) => {
-          results.innerHTML = markup
-          container.className = 'navbar-search'
-        })
-    }, 150))
-    window.addEventListener('mouseup', debounce((element) => {
-      if (element.target !== container && element.target.parentNode !== container) {
-        container.className = 'navbar-search results-hidden'
-        results.innerHTML = ''
-      }
-    }), 150)
+            }
+          })
+          .then((markup) => {
+            results.innerHTML = markup
+            container.className = 'navbar-search'
+          })
+      }, 150)
+    )
+    window.addEventListener(
+      'mouseup',
+      debounce((element) => {
+        if (element.target !== container && element.target.parentNode !== container) {
+          container.className = 'navbar-search results-hidden'
+          results.innerHTML = ''
+        }
+      }),
+      150
+    )
     cancel.addEventListener('click', function () {
       container.className = 'navbar-search results-hidden'
       results.innerHTML = ''