diff --git a/README.md b/README.md index 42f457bf8..a7ec17122 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ set white and purple colors. .algolia-docsearch-suggestion--highlight { color: #3A33D1; } -/* Highligted search terms in the main category headers */ +/* Highlighted search terms in the main category headers */ .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight { background-color: #4D47D5; } diff --git a/docs/source/assets/stylesheets/_searchbar.scss b/docs/source/assets/stylesheets/_searchbar.scss index c83a3af39..49ae72427 100644 --- a/docs/source/assets/stylesheets/_searchbar.scss +++ b/docs/source/assets/stylesheets/_searchbar.scss @@ -115,7 +115,7 @@ $custom:( text-align: center; user-select: none; - // Helper for vertical alignement of the icon + // Helper for vertical alignment of the icon &::before { display: inline-block; margin-right: -4px; diff --git a/docs/source/documentation/2-docsearch-scraper/2-config-options.html.md.erb b/docs/source/documentation/2-docsearch-scraper/2-config-options.html.md.erb index 3591f3464..453b8b778 100644 --- a/docs/source/documentation/2-docsearch-scraper/2-config-options.html.md.erb +++ b/docs/source/documentation/2-docsearch-scraper/2-config-options.html.md.erb @@ -63,7 +63,7 @@ Name of the Algolia index where all the data will be pushed. **On our own infrastructure, this name must be equal to the configuration file name** -We mostly attribute it on our own regarding plenty of underlying factors. The `apiKey` that we provide is generated with a restriction on the `index_name`. Changing the `index_name` would require to ask for a new key. Thus if you want to **change the name**, please **submit a new configration**, we will generate a new key accordingly. +We mostly attribute it on our own regarding plenty of underlying factors. The `apiKey` that we provide is generated with a restriction on the `index_name`. Changing the `index_name` would require to ask for a new key. Thus if you want to **change the name**, please **submit a new configuration**, we will generate a new key accordingly. ### `start_urls` _Mandatory_ You can pass either a string or an array of urls. The crawler will go to each @@ -115,7 +115,7 @@ You can also define some `tags` that will also behave as [`attributesForFaceting In order to promote some pages, you can set the `page_rank` attribute (default: `0`, can be a positive or negative integer). -Finally, If your website contains differents parts and layouts, you can define specific `selectors` for each part and apply them using `selectors_key`: +Finally, If your website contains different parts and layouts, you can define specific `selectors` for each part and apply them using `selectors_key`: Example: ```json @@ -343,7 +343,7 @@ settings. You will [look under the hood of algolia](https://www.algolia.com/doc/ The number of maximum records allowed for the whole indexing. If the scrapping is bigger, it will fail. -This value is not meant to be set from anyone except DocSearch maintaner. +This value is not meant to be set from anyone except DocSearch maintainer. Default is `600 000` (arbitrary, might change) diff --git a/docs/source/documentation/3-docsearch-autocomplete/1-customize-autocomplete-styles.html.md.erb b/docs/source/documentation/3-docsearch-autocomplete/1-customize-autocomplete-styles.html.md.erb index e4ae3a958..b32115c11 100644 --- a/docs/source/documentation/3-docsearch-autocomplete/1-customize-autocomplete-styles.html.md.erb +++ b/docs/source/documentation/3-docsearch-autocomplete/1-customize-autocomplete-styles.html.md.erb @@ -34,7 +34,7 @@ set white and purple colors. .algolia-docsearch-suggestion--highlight { color: #3A33D1; } -/* Highligted search terms in the main category headers */ +/* Highlighted search terms in the main category headers */ .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight { background-color: #4D47D5; } diff --git a/scripts/test-coverage b/scripts/test-coverage index 233c0f794..4fd0ee9e2 100755 --- a/scripts/test-coverage +++ b/scripts/test-coverage @@ -3,7 +3,7 @@ # This file will then be read by Travis to push it to Coveralls # # The command is long and was quite hard to write correctly. -# We need babel-istanbul and not instanbul +# We need babel-istanbul and not istanbul # We need the _mocha and not mocha # We need to use full path for each binaries # We need to run everything through babel-node diff --git a/src/lib/DocSearch.js b/src/lib/DocSearch.js index 3b8112acb..97cc70a94 100644 --- a/src/lib/DocSearch.js +++ b/src/lib/DocSearch.js @@ -249,7 +249,7 @@ class DocSearch { '' ); const text = utils.getSnippetedValue(hit, 'content'); - const isTextOrSubcatoryNonEmpty = + const isTextOrSubcategoryNonEmpty = (subcategory && subcategory !== '') || (displayTitle && displayTitle !== ''); const isLvl1EmptyOrDuplicate = @@ -268,7 +268,7 @@ class DocSearch { isLvl1EmptyOrDuplicate, isCategoryHeader: hit.isCategoryHeader, isSubCategoryHeader: hit.isSubCategoryHeader, - isTextOrSubcatoryNonEmpty, + isTextOrSubcategoryNonEmpty, category, subcategory, title: displayTitle, diff --git a/src/lib/__tests__/DocSearch-test.js b/src/lib/__tests__/DocSearch-test.js index d93350998..79d04c430 100644 --- a/src/lib/__tests__/DocSearch-test.js +++ b/src/lib/__tests__/DocSearch-test.js @@ -349,7 +349,7 @@ describe('DocSearch', () => { }); describe('the returned function', () => { - it('calls the Agolia client with the correct parameters', () => { + it('calls the Algolia client with the correct parameters', () => { // Given const actual = docsearch.getAutocompleteSource(); @@ -369,7 +369,7 @@ describe('DocSearch', () => { }); describe('when queryHook is used', () => { - it('calls the Agolia client with the correct parameters', () => { + it('calls the Algolia client with the correct parameters', () => { // Given const actual = docsearch.getAutocompleteSource( false, diff --git a/src/lib/templates.js b/src/lib/templates.js index b4339c0f3..7eaf7641a 100644 --- a/src/lib/templates.js +++ b/src/lib/templates.js @@ -17,13 +17,13 @@ const templates = {
{{{subcategory}}}
- {{#isTextOrSubcatoryNonEmpty}} + {{#isTextOrSubcategoryNonEmpty}}
{{{subcategory}}}
{{{title}}}
{{#text}}
{{{text}}}
{{/text}}
- {{/isTextOrSubcatoryNonEmpty}} + {{/isTextOrSubcategoryNonEmpty}} `, diff --git a/src/lib/utils.js b/src/lib/utils.js index 1010ba687..16c6f195b 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -233,7 +233,7 @@ const utils = { * text: 'This is an unfinished sentence' * }, 'text'); * => - * 'This is an unefinished sentenced…' + * 'This is an unfinished sentence…' * @param {object} object Hit object returned by the Algolia API * @param {string} property Object key to look for * @return {string} diff --git a/src/styles/_dropdown.scss b/src/styles/_dropdown.scss index 8f8f89f15..7e2e02f43 100644 --- a/src/styles/_dropdown.scss +++ b/src/styles/_dropdown.scss @@ -50,7 +50,7 @@ } } -// Alignement type +// Alignment type @mixin alignment-type($type) { @if $type == 'left' { left: 0 !important; diff --git a/src/styles/_searchbox.scss b/src/styles/_searchbox.scss index fd018c2bb..f2274a1c5 100644 --- a/src/styles/_searchbox.scss +++ b/src/styles/_searchbox.scss @@ -127,7 +127,7 @@ left: 0; } - // Helper for vertical alignement of the icon + // Helper for vertical alignment of the icon &::before { display: inline-block; margin-right: -4px;