Skip to content

Commit

Permalink
added algolia search
Browse files Browse the repository at this point in the history
  • Loading branch information
lennessyy committed Nov 10, 2021
1 parent 0af698f commit 1765e73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file modified build/ui-bundle.zip
Binary file not shown.
13 changes: 7 additions & 6 deletions src/partials/footer-scripts.hbs
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
<script src="{{{uiRootPath}}}/js/site.js"></script>
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
<!-- Before the closing </body> -->
{{!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
{{!-- <script src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script> --}}
<script>
docsearch({
// Your apiKey and indexName will be given to you once
// we create your config
apiKey: '271b7a553acb2a30275787302cab57d3',
apiKey: '294d1dcb70726c453eb9db18c0472709',
indexName: 'tgdocs',
appId: 'G2WKSUM995', // Should be only included if you are running DocSearch on your own.
appId: 'CTOKZGN7YQ', // Should be only included if you are running DocSearch on your own.
// Replace inputSelector with a CSS selector
// matching your search input
inputSelector: '#search',
// Set debug to true to inspect the dropdown
debug: false,
});
</script> --}}
</script>

<script type="text/javascript">
{{!-- <script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','wGW4288Z7D7GjQmQFrP7','2.0.0');
</script>
</script> --}}
1 change: 1 addition & 0 deletions src/partials/head-scripts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
<script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script>
{{/with}}
<script>var uiRootPath = '{{{uiRootPath}}}'</script>
<link rel="preconnect" href="https://CTOKZGN7YQ-dsn.algolia.net" crossorigin />
1 change: 1 addition & 0 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<div class="navbar-end">
<div class="navbar-item">
<input id="search" class="st-default-search-input">
{{!-- <div id="docsearch"></div> --}}
</div>
<a class="navbar-item" href="#">Home</a>
<div class="navbar-item has-dropdown is-hoverable">
Expand Down

0 comments on commit 1765e73

Please sign in to comment.