mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
feat(site): add brand stop words to icon search (#3824)
* feat(site): added extended no results placeholder with brand icon stop words * feat(site): fix grammatical error * feat: extract brand stopwords & update github action to use these stopwords * Apply suggestions from code review Co-authored-by: Jakob Guddas <github@jguddas.de> * feat: only use icon name section for closing brand request issues * feat: added mcp brand stopword --------- Co-authored-by: Jakob Guddas <github@jguddas.de> Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
co-authored by
Jakob Guddas
Eric Fennis
parent
9076da5f1b
commit
b4405f05ab
@@ -0,0 +1,15 @@
|
||||
import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
||||
const currentDir = process.cwd();
|
||||
const dataDirectory = path.resolve(currentDir, '.vitepress/data');
|
||||
const stopwordsSource = path.resolve(currentDir, `../brand-stopwords.json`);
|
||||
const stopwordsFile = path.resolve(dataDirectory, `brandStopwords.json`);
|
||||
|
||||
fs.copyFile(stopwordsSource, stopwordsFile)
|
||||
.then(() => {
|
||||
console.log('Successfully copied brandStopwords.json file');
|
||||
})
|
||||
.catch((error) => {
|
||||
throw new Error(`Something went wrong generating the brandStopwords.json file,\n ${error}`);
|
||||
});
|
||||
Reference in New Issue
Block a user