Closed benjaminParisel closed 5 months ago
:warning: With the preview-src file on the documenation-theme project, the site.components
give us an Array of components.
When we build the documentation-site project, the site.components
give us a Object of object.
So we need to to an ugly conversion to avoid some compilation errors.
FATAL (antora): components.filter is not a function in UI template layouts/default.hbs
Cause: Error
ion
at module.exports (helpers/isComponentToHide.js:7:23)
at Object.wrapper (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at eval (eval at createFunctionContext (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:10:197)
at Object.prog [as inverse] (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/runtime.js:268:12)
at Object.<anonymous> (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:27:22)
at Object.<anonymous> (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:37:35)
at Object.wrapper (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at Object.eval [as main] (eval at createFunctionContext (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:17:51)
at main (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/mnt/SharedVolume/worskpace/doc/bonita-documentation-site/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
We need to hide some component entry from header and from navigation explore menu
We could use the attribute page (based on component configuration file https://github.com/bonitasoft/bonita-documentation-site/issues/689) named
page-hide-components
to do it.Tasks: