mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
Update use of readCategories.js
This commit is contained in:
parent
5b9bb1b2b5
commit
ab58eaa9fa
4 changed files with 6 additions and 35 deletions
|
@ -90,15 +90,7 @@ function readCategories(layout) {
|
|||
allCategories[language] = categories;
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
__dirname + "/../core/" + layout + "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