mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
Merge branch 'master' into sidebar-ordering
This commit is contained in:
commit
f3cb4d1860
8 changed files with 727 additions and 139 deletions
|
@ -90,15 +90,7 @@ function readCategories(sidebar) {
|
|||
allCategories[language] = categories;
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
__dirname + "/../core/" + sidebar + "Categories.js",
|
||||
"/**\n" +
|
||||
" * @generated\n" +
|
||||
" */\n" +
|
||||
"module.exports = " +
|
||||
JSON.stringify(allCategories, null, 2) +
|
||||
";"
|
||||
);
|
||||
return allCategories;
|
||||
}
|
||||
|
||||
module.exports = readCategories;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue