feat: Now reading a JS file instead of JSON

This commit is contained in:
Laegel
2021-05-24 09:55:26 +02:00
parent ecba630583
commit 066b17a7fd

View File

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