-
-
+
+
DocSearch
diff --git a/docs/img/community-badge.svg b/docs/img/community-badge.svg
new file mode 100644
index 00000000..5412365d
--- /dev/null
+++ b/docs/img/community-badge.svg
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/docs/img/logo-community-lg.svg b/docs/img/logo-community-lg.svg
deleted file mode 100644
index 4b21ba92..00000000
--- a/docs/img/logo-community-lg.svg
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
\ No newline at end of file
diff --git a/docs/img/logo-community-sm.svg b/docs/img/logo-community-sm.svg
deleted file mode 100644
index a038ccd6..00000000
--- a/docs/img/logo-community-sm.svg
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
\ No newline at end of file
diff --git a/docs/img/logo-community.svg b/docs/img/logo-community.svg
new file mode 100644
index 00000000..1e607551
--- /dev/null
+++ b/docs/img/logo-community.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index 926f80f2..901ea0e4 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"peerDependencies": {},
"dependencies": {
"algoliasearch": "^3.18.0",
- "autocomplete.js": "^0.21.8",
+ "autocomplete.js": "^0.25.0",
"hogan.js": "^3.0.2",
"to-factory": "^1.0.0"
}
diff --git a/src/lib/DocSearch.js b/src/lib/DocSearch.js
index f8ad036f..25dab506 100644
--- a/src/lib/DocSearch.js
+++ b/src/lib/DocSearch.js
@@ -203,7 +203,7 @@ class DocSearch {
utils.getHighlightedValue(hit, 'lvl4'),
utils.getHighlightedValue(hit, 'lvl5'),
utils.getHighlightedValue(hit, 'lvl6')
- ]).join('
› ');
+ ]).join('
› ');
const text = utils.getSnippetedValue(hit, 'content');
const isTextOrSubcatoryNonEmpty = (subcategory && subcategory !== '') ||
(displayTitle && displayTitle !== '');
diff --git a/test/DocSearch-test.js b/test/DocSearch-test.js
index c6f51a41..733ed78d 100644
--- a/test/DocSearch-test.js
+++ b/test/DocSearch-test.js
@@ -736,7 +736,7 @@ describe('DocSearch', () => {
// When
let actual = DocSearch.formatHits(input);
- let separator = '
› ';
+ let separator = '
› ';
// Then
expect(actual[0].title).toEqual('Geo-search' + separator + 'Foo' + separator + 'Bar' + separator + 'Baz');
});
@@ -778,7 +778,7 @@ describe('DocSearch', () => {
// When
let actual = DocSearch.formatHits(input);
- let separator = '
› ';
+ let separator = '
› ';
// Then
let expected = '
Geo-search' + separator + '
Foo' + separator +
'
Bar' + separator + '
Baz';
diff --git a/webpack.dev.config.babel.js b/webpack.dev.config.babel.js
index 3fe28cf0..d0d2c103 100644
--- a/webpack.dev.config.babel.js
+++ b/webpack.dev.config.babel.js
@@ -1,4 +1,4 @@
-import {join} from 'path';
+import path from 'path';
export default {
entry: './dev/app.js',
@@ -9,7 +9,12 @@ export default {
},
module: {
loaders: [{
- test: /\.js$/, exclude: /node_modules/, loader: 'babel'
+ test: /\.js$/,
+ include: [
+ path.resolve(__dirname, 'src'),
+ path.resolve(__dirname, 'dev'),
+ path.resolve(__dirname, 'scripts')
+ ], loader: 'babel'
}]
},
devServer: {
@@ -21,10 +26,10 @@ export default {
// helps fixing the npm link not working with webpack
// http://stackoverflow.com/a/33722844/147079
resolve: {
- fallback: [join(__dirname, '..', 'node_modules')]
+ fallback: [path.join(__dirname, '..', 'node_modules')]
},
// same issue, for loaders like babel
resolveLoader: {
- fallback: [join(__dirname, '..', 'node_modules')]
+ fallback: [path.join(__dirname, '..', 'node_modules')]
}
};