1
0
Fork 0

feat(fs.dev): Initial search implementation

This commit is contained in:
Joost De Cock 2021-12-31 08:27:13 +01:00
parent 09c2b89aed
commit 8f165dbe6d
9 changed files with 612 additions and 37 deletions

View file

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