You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/03 02:39:06 UTC

[GitHub] [camel-website] Nayananga commented on a change in pull request #163: Pr/algolia search

Nayananga commented on a change in pull request #163: Pr/algolia search
URL: https://github.com/apache/camel-website/pull/163#discussion_r386769281
 
 

 ##########
 File path: antora-ui-camel/src/partials/footer-scripts.hbs
 ##########
 @@ -1,5 +1,6 @@
 <script src="{{uiRootPath}}{{asset 'js/site.js'}}"></script>
 <script async src="{{uiRootPath}}{{asset 'js/vendor/highlight.js'}}"></script>
 <script async src="{{uiRootPath}}{{asset 'js/vendor/svg4everybody.js'}}"></script>
+<script async src="https://cdn.jsdelivr.net/npm/algoliasearch@4/dist/algoliasearch-lite.umd.js"></script>
 
 Review comment:
   @zregvart I tried to solve this by 
   first
   >yarn add algoliasearch in antora-ui-camel 
   
   then
   >added a new algolia_search.js file into vendor folder which has
   ;(function () {
     var algoliasearch = require('algoliasearch')
     algoliassearch()
   })()
   
   finally
   >add that script into to footer scrips as you mentioned
   
   then I`m having these errors, any thoughts? 
   
   ![Screenshot from 2020-03-03 08-06-46](https://user-images.githubusercontent.com/25351304/75737567-14f59280-5d26-11ea-993e-2601c50495a6.png)
   ![Screenshot from 2020-03-03 08-05-37](https://user-images.githubusercontent.com/25351304/75737584-1de66400-5d26-11ea-9920-bb20ecc093b3.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services