0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00

docsearch api

This commit is contained in:
Mark Otto 2017-07-04 14:15:04 -07:00
parent 819f42a7d0
commit 8edfb24a3c

View File

@ -41,12 +41,12 @@
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script type="text/javascript">
var docsearch = docsearch({
apiKey: '48cb48b22351bc71ea5f12f4d1ede198',
apiKey: 'c6aa63796ef2f94c7e7e7f0b93b4a223',
indexName: 'bootstrap-v3',
inputSelector: '#search-input',
transformData: function (hits) {
return hits.map(function (hit) {
hit.url = hit.url.replace('https://getbootstrap.com/docs/3.4/', '');
hit.url = hit.url.replace('https://getbootstrap.com/', '');
return hit;
});
},