mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 02:30:12 +02:00
Docs: include more relevant content in search index
This commit is contained in:
parent
ec26c8aa49
commit
83fe65b9e9
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@ const extractDescription = (str) =>
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(/[^A-Za-z0-9_/\-,. ]/g, '')
|
||||
.replace(/\s+/g, ' ')
|
||||
.substr(0, 140)
|
||||
.substr(0, 180)
|
||||
.trim();
|
||||
|
||||
const extractKeywords = (str) =>
|
||||
|
@ -4,14 +4,19 @@ module.exports = [
|
||||
'about',
|
||||
'after',
|
||||
'all',
|
||||
'allows',
|
||||
'already',
|
||||
'also',
|
||||
'alternative',
|
||||
'always',
|
||||
'and',
|
||||
'any',
|
||||
'are',
|
||||
'based',
|
||||
'been',
|
||||
'before',
|
||||
'both',
|
||||
'call',
|
||||
'can',
|
||||
'containing',
|
||||
'default',
|
||||
@ -30,7 +35,10 @@ module.exports = [
|
||||
'have',
|
||||
'how',
|
||||
'image',
|
||||
'involve',
|
||||
'its',
|
||||
'least',
|
||||
'lots',
|
||||
'may',
|
||||
'more',
|
||||
'most',
|
||||
@ -40,17 +48,24 @@ module.exports = [
|
||||
'not',
|
||||
'occur',
|
||||
'occurs',
|
||||
'options',
|
||||
'over',
|
||||
'perform',
|
||||
'performs',
|
||||
'provide',
|
||||
'provided',
|
||||
'ready',
|
||||
'same',
|
||||
'see',
|
||||
'set',
|
||||
'sets',
|
||||
'should',
|
||||
'since',
|
||||
'spelling',
|
||||
'such',
|
||||
'support',
|
||||
'supported',
|
||||
'sure',
|
||||
'take',
|
||||
'that',
|
||||
'the',
|
||||
@ -59,6 +74,9 @@ module.exports = [
|
||||
'therefore',
|
||||
'these',
|
||||
'this',
|
||||
'under',
|
||||
'unless',
|
||||
'until',
|
||||
'use',
|
||||
'used',
|
||||
'using',
|
||||
@ -69,5 +87,6 @@ module.exports = [
|
||||
'while',
|
||||
'will',
|
||||
'with',
|
||||
'without'
|
||||
'without',
|
||||
'you'
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user