Skip to content

Commit ce9aef1

Browse files
committed
1 parent 6d9a3c4 commit ce9aef1

File tree

2 files changed

+13
-41
lines changed

2 files changed

+13
-41
lines changed

_includes/nav.html

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
{% endunless %} {% endfor %}
7070
</ul>
7171
</div>
72+
73+
<!-- algolia docsearch https://docsearch.algolia.com/docs/docsearch-v3/ -->
74+
<div id="docsearch"></div>
75+
7276
</div>
7377
</nav>
7478
</header>

_layouts/default.html

+9-41
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,15 @@
1313
<link href="/css/neovim-hi.css" rel="stylesheet">
1414
<link rel="canonical" href="{{ site.url }}{% if page.canonical_url %}{{ page.canonical_url }}{% else %}{{ page.url }}{% endif %}" />
1515

16-
<!-- v3 -->
17-
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" /> -->
18-
<!-- legacy -->
19-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
16+
<!-- algolia docsearch https://docsearch.algolia.com/docs/docsearch-v3/ -->
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
18+
<link rel="preconnect" href="https://X185E15FPG-dsn.algolia.net" crossorigin />
19+
2020
</head>
2121

2222
<body>
23-
testtttttttttttt
24-
<!-- <div id="docsearch"></div> -->
25-
<input id="docsearch"></input>
26-
27-
testtttttttttttt
2823
{{ content }}
2924

30-
testtttttttttttt
3125
{% include footer.html %}
3226

3327
{%- comment -%}Only used in bountysource{%- endcomment -%}
@@ -36,42 +30,16 @@
3630
<script src="/js/sponsors.js"></script>
3731
<script src="/js/bootstrap.min.js"></script>
3832

39-
<!-- Before the closing </body> -->
40-
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
41-
<script>
42-
docsearch({
43-
// Your Algolia Application ID
44-
appId: 'R2IYF7ETH7',
45-
// Your Search API Key
46-
apiKey: '599cec31baffa4868cae4e79f180729b',
47-
// The index populated by the DocSearch scraper
48-
indexName: 'docsearch',
49-
inputSelector: '#docsearch',
50-
// Set debug to true to inspect the dropdown
51-
debug: true,
52-
});
53-
</script>
54-
55-
<!--
33+
<!-- algolia docsearch https://docsearch.algolia.com/docs/docsearch-v3/ -->
5634
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
5735
<script type="module">
58-
import docsearch from '@docsearch/js';
59-
60-
import '@docsearch/css';
61-
6236
docsearch({
6337
container: '#docsearch',
64-
appId: 'R2IYF7ETH7',
65-
apiKey: '599cec31baffa4868cae4e79f180729b',
66-
indexName: 'docsearch',
38+
appId: 'X185E15FPG',
39+
apiKey: 'b5e6b2f9c636b2b471303205e59832ed',
40+
indexName: 'nvim',
6741
});
68-
//docsearch({
69-
// container: '#docsearch',
70-
// appId: 'YOUR_APP_ID',
71-
// indexName: 'YOUR_INDEX_NAME',
72-
// apiKey: 'YOUR_SEARCH_API_KEY',
73-
//});
7442
</script>
75-
-->
43+
7644
</body>
7745
</html>

0 commit comments

Comments
 (0)