aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/footer.html
diff options
context:
space:
mode:
authorMaxime Locqueville <[email protected]>2017-05-28 18:50:53 +0200
committerMark Otto <[email protected]>2017-05-28 16:15:08 -0700
commitc709ce19a5bebee1cd3f083b0e2d924eb251c729 (patch)
treeb3d0b3433b972f2464a32b412543a00f3d4a7786 /docs/_includes/footer.html
parent10ca9c6d5a74c66a3557afbd8dfb44122f46fd45 (diff)
downloadbootstrap-c709ce19a5bebee1cd3f083b0e2d924eb251c729.tar.xz
bootstrap-c709ce19a5bebee1cd3f083b0e2d924eb251c729.zip
add docsearch
Diffstat (limited to 'docs/_includes/footer.html')
-rw-r--r--docs/_includes/footer.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html
index 62bf93b9d..4747abf24 100644
--- a/docs/_includes/footer.html
+++ b/docs/_includes/footer.html
@@ -35,17 +35,17 @@
<script src="{{ site.baseurl }}/assets/js/ie10-viewport-bug-workaround.js"></script>
<script src="{{ site.baseurl }}/assets/js/ie-emulation-modes-warning.js"></script>
-<script src="{{ site.baseurl }}/assets/js/vendor/jekyll-search.min.js"></script>
-
+{% if page.layout == "docs" %}
+<script src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script>
-SimpleJekyllSearch.init({
- searchInput: document.getElementById('search-input'),
- resultsContainer: document.getElementById('search-results'),
- searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>',
- noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>',
- json: '{{ site.baseurl }}/search.json'
-})
+ docsearch({
+ apiKey: '48cb48b22351bc71ea5f12f4d1ede198',
+ indexName: 'bootstrap-v4',
+ inputSelector: '#search-input',
+ debug: true // Set debug to true if you want to inspect the dropdown
+ });
</script>
+{% endif %}
<script>
Holder.addTheme('gray', {