Docs: refresh search index

This commit is contained in:
Lovell Fuller
2023-02-18 12:51:42 +00:00
parent 863e37455a
commit bb8de0cc26
4 changed files with 6 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ for (const match of matches) {
].forEach((section) => {
const contents = fs.readFileSync(path.join(__dirname, '..', `api-${section}.md`), 'utf8');
const matches = contents.matchAll(
/\n## (?<title>[A-Za-z]+)\n\n(?<firstparagraph>.+?)\n\n(?<parameters>### Parameters.+?Returns)?/gs
/\n## (?<title>[A-Za-z]+)\n(?<firstparagraph>.+?)\n\n(?<parameters>### Parameters.+?Returns)?/gs
);
for (const match of matches) {
const { title, firstparagraph, parameters } = match.groups;

View File

@@ -16,6 +16,7 @@ module.exports = [
'based',
'been',
'before',
'best',
'both',
'call',
'callback',
@@ -63,6 +64,7 @@ module.exports = [
'now',
'occur',
'occurs',
'one',
'options',
'other',
'out',
@@ -71,6 +73,7 @@ module.exports = [
'perform',
'performs',
'please',
'pre',
'previously',
'produce',
'provide',