mirror of
https://github.com/tauri-apps/docusaurus-meilisearch-indexer.git
synced 2026-02-04 02:31:22 +01:00
feat: Now reading a JS file instead of JSON
This commit is contained in:
@@ -140,7 +140,7 @@ const fetchIndexes = (node, baseData) => {
|
||||
}
|
||||
};
|
||||
|
||||
require(`${PATH}/sidebars.json`)
|
||||
require(`${PATH}/sidebars.js`)
|
||||
.docs.filter((lvl0) => DOCS.includes(lvl0.label))
|
||||
.forEach(fetchIndexes, {
|
||||
hierarchy_lvl0: null,
|
||||
|
||||
Reference in New Issue
Block a user