From 177d701b0066951e6754ca128942c39d6316086a Mon Sep 17 00:00:00 2001 From: Sylvain UTARD Date: Thu, 24 Dec 2015 01:11:02 +0100 Subject: [PATCH 1/3] v1.0.0 # [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24) ### Bug Fixes * **isSubCategoryHeader:** ensure we hide the content of the left column if this flag is not set ([0e04ce4](https://github.com/algolia/docsearch/commit/0e04ce4)), closes [#47](https://github.com/algolia/docsearch/issues/47) --- CHANGELOG.md | 10 ++++++++++ README.md | 15 ++++++++------- npm-shrinkwrap.json | 2 +- package.json | 2 +- src/lib/version.js | 2 +- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e009f260..3984fc99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +# [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24) + + +### Bug Fixes + +* **isSubCategoryHeader:** ensure we hide the content of the left column if this flag is not set ([0e04ce4](https://github.com/algolia/docsearch/commit/0e04ce4)), closes [#47](https://github.com/algolia/docsearch/issues/47) + + + ## [0.0.7](https://github.com/algolia/docsearch/compare/v0.0.6...v0.0.7) (2015-12-22) diff --git a/README.md b/README.md index fe2f3925..73264cf7 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,14 @@ Check out our [website][3] to add an outstanding search to your documentation. ## Table of Contents -- [Introduction][5] -- [Setup][6] -- [Customization][7] -- [Development workflow][8] - - [Local example][9] - - [Documentation website][10] - - [MacOS][11] +- [Introduction](#introduction) +- [Setup](#setup) +- [Customization](#customization) +- [Development workflow](#development-workflow) + - [Local example](#local-example) + - [Local build](#local-build) + - [Documentation website](#documentation-website) + - [MacOS](#macos) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 23d229d0..99731d83 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "docsearch.js", - "version": "0.0.7", + "version": "1.0.0", "npm-shrinkwrap-version": "200.4.0", "node-version": "v4.2.2", "dependencies": { diff --git a/package.json b/package.json index c59bf327..da9283c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docsearch.js", - "version": "0.0.7", + "version": "1.0.0", "description": "Add an autocomplete dropdown to your documentation", "main": "dist/npm/index.js", "scripts": { diff --git a/src/lib/version.js b/src/lib/version.js index 653c4c00..3d64381b 100644 --- a/src/lib/version.js +++ b/src/lib/version.js @@ -1 +1 @@ -export default '0.0.7'; +export default '1.0.0'; From 31abbd7400bbf89026d7db0848f2be448090a530 Mon Sep 17 00:00:00 2001 From: Sylvain UTARD Date: Thu, 24 Dec 2015 10:20:15 +0100 Subject: [PATCH 2/3] fix(handleSelected): ensure we're calling setVal on the right object Fix #51 --- src/lib/DocSearch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/DocSearch.js b/src/lib/DocSearch.js index a1bdf050..e280c637 100644 --- a/src/lib/DocSearch.js +++ b/src/lib/DocSearch.js @@ -58,7 +58,7 @@ class DocSearch { footer: templates.footer } }]); - this.autocomplete.on('autocomplete:selected', this.handleSelected); + this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete)); } /** @@ -161,8 +161,8 @@ class DocSearch { }; } - handleSelected(event, suggestion) { - this.autocomplete.autocomplete.setVal(''); + handleSelected(input, event, suggestion) { + input.setVal(''); window.location.href = suggestion.url; } } From 90f054d893656eea2950ae4aeced122106e423b9 Mon Sep 17 00:00:00 2001 From: Sylvain UTARD Date: Thu, 24 Dec 2015 11:07:26 +0100 Subject: [PATCH 3/3] v1.0.1 ## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24) ### Bug Fixes * **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51) --- CHANGELOG.md | 10 ++++++++++ npm-shrinkwrap.json | 2 +- package.json | 2 +- src/lib/version.js | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3984fc99..14d6161f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24) + + +### Bug Fixes + +* **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51) + + + # [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 99731d83..391cfdb8 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "docsearch.js", - "version": "1.0.0", + "version": "1.0.1", "npm-shrinkwrap-version": "200.4.0", "node-version": "v4.2.2", "dependencies": { diff --git a/package.json b/package.json index da9283c7..a93eb102 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docsearch.js", - "version": "1.0.0", + "version": "1.0.1", "description": "Add an autocomplete dropdown to your documentation", "main": "dist/npm/index.js", "scripts": { diff --git a/src/lib/version.js b/src/lib/version.js index 3d64381b..507d1329 100644 --- a/src/lib/version.js +++ b/src/lib/version.js @@ -1 +1 @@ -export default '1.0.0'; +export default '1.0.1';