1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-03 08:41:59 +02:00

basic docs search

This commit is contained in:
Mark Otto
2014-12-24 02:44:38 -08:00
parent 952be04cb0
commit 73e59c26e6
8 changed files with 70 additions and 5 deletions

View File

@@ -147,6 +147,13 @@
.tooltip('show')
})
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'),
searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
dataSource: '/search.json'
})
})
}(jQuery)