* chore(stack update): update the whole docsearch stack In an effort to reduce our stack diversity I am moving docsearch to: - latest eslint - prettier - webpack 2 - babel 6 (babel 7 is soon to be released, we were on babel 5) - babel-preset-env (support: IE >=9, Two latest version of evergreen browsers). - jest * chore(contrib): remove develop branch, cc @redox
10 lines
228 B
JavaScript
10 lines
228 B
JavaScript
import docsearch from '../index.js';
|
|
|
|
docsearch({
|
|
apiKey: 'e3d767b736584dbe6d4c35f7cf7d4633',
|
|
indexName: 'react-native',
|
|
inputSelector: '#search-input',
|
|
debug: true,
|
|
});
|
|
|
|
document.getElementById('search-input').focus();
|