diff --git a/gitlab-pages/website/core/AlgoliaSearch.js b/gitlab-pages/website/core/AlgoliaSearch.js new file mode 100644 index 000000000..68633cb56 --- /dev/null +++ b/gitlab-pages/website/core/AlgoliaSearch.js @@ -0,0 +1,42 @@ +const React = require("react"); + +module.exports = props => { + const docsVersion = props.version; + const algoliaOptions = props.config.algolia.algoliaOptions + ? props.config.algolia.algoliaOptions + : {}; + + return ( +
+ + + {props.config.algolia && ( +
+ +