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 03:12:44 UTC

[GitHub] [camel-website] djencks commented on issue #163: Pr/algolia search

djencks commented on issue #163: Pr/algolia search
URL: https://github.com/apache/camel-website/pull/163#issuecomment-593744904
 
 
   You need to have the file name be aloglia_search.bundle.js so that the UI builder will run browserify on the contents and convert the require into an “include”
   
   Hope this helps :-)
   
   David Jencks
   
   > On Mar 2, 2020, at 6:39 PM, Nayananga Anuradha Muhandiram <no...@github.com> wrote:
   > 
   > @Nayananga commented on this pull request.
   > 
   > In antora-ui-camel/src/partials/footer-scripts.hbs <https://github.com/apache/camel-website/pull/163#discussion_r386769281>:
   > 
   > > @@ -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>
   > @zregvart <https://github.com/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?
   > 
   >  <https://user-images.githubusercontent.com/25351304/75737567-14f59280-5d26-11ea-993e-2601c50495a6.png>
   >  <https://user-images.githubusercontent.com/25351304/75737584-1de66400-5d26-11ea-9920-bb20ecc093b3.png>
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub <https://github.com/apache/camel-website/pull/163?email_source=notifications&email_token=AAELDXXRGHKJ25A45RKECNTRFRUUVA5CNFSM4K4LPXCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCXVCYYI#discussion_r386769281>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAELDXWPFMDQQIMJE3MY5ODRFRUUVANCNFSM4K4LPXCA>.
   > 
   
   

----------------------------------------------------------------
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