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(/\s+/g, ' ')
.replace(/[^A-Za-z0-9_/\-,. ]/g, '') .replace(/[^A-Za-z0-9_/\-,. ]/g, '')
.replace(/\s+/g, ' ') .replace(/\s+/g, ' ')
.substr(0, 140) .substr(0, 180)
.trim(); .trim();
const extractKeywords = (str) => const extractKeywords = (str) =>

View File

@ -4,14 +4,19 @@ module.exports = [
'about', 'about',
'after', 'after',
'all', 'all',
'allows',
'already', 'already',
'also',
'alternative', 'alternative',
'always', 'always',
'and', 'and',
'any', 'any',
'are', 'are',
'based',
'been', 'been',
'before', 'before',
'both',
'call',
'can', 'can',
'containing', 'containing',
'default', 'default',
@ -30,7 +35,10 @@ module.exports = [
'have', 'have',
'how', 'how',
'image', 'image',
'involve',
'its', 'its',
'least',
'lots',
'may', 'may',
'more', 'more',
'most', 'most',
@ -40,17 +48,24 @@ module.exports = [
'not', 'not',
'occur', 'occur',
'occurs', 'occurs',
'options',
'over', 'over',
'perform', 'perform',
'performs', 'performs',
'provide', 'provide',
'provided', 'provided',
'ready',
'same',
'see',
'set', 'set',
'sets', 'sets',
'should', 'should',
'since',
'spelling', 'spelling',
'such',
'support', 'support',
'supported', 'supported',
'sure',
'take', 'take',
'that', 'that',
'the', 'the',
@ -59,6 +74,9 @@ module.exports = [
'therefore', 'therefore',
'these', 'these',
'this', 'this',
'under',
'unless',
'until',
'use', 'use',
'used', 'used',
'using', 'using',
@ -69,5 +87,6 @@ module.exports = [
'while', 'while',
'will', 'will',
'with', 'with',
'without' 'without',
'you'
]; ];