Docs: include more relevant content in search index

This commit is contained in:
Lovell Fuller 2021-03-21 20:59:05 +00:00
parent ec26c8aa49
commit 83fe65b9e9
3 changed files with 22 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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) =>

View File

@ -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'
];