feat(fs.dev): Initial search implementation
This commit is contained in:
parent
09c2b89aed
commit
8f165dbe6d
9 changed files with 612 additions and 37 deletions
|
@ -21,8 +21,10 @@ import yaml from 'js-yaml'
|
|||
*
|
||||
* - folder: the root folder to look in
|
||||
* - lang: the language files to looks for
|
||||
*
|
||||
* Exported because it's also used by the Algolia index script
|
||||
*/
|
||||
const getMdxFileList = async (folder, lang) => {
|
||||
export const getMdxFileList = async (folder, lang) => {
|
||||
let allFiles
|
||||
try {
|
||||
allFiles = await rdir(folder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue