mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 02:08:55 +02:00
refactor(content-docs): read category metadata files before autogenerating (#6586)
* refactor(content-docs): read category metadata files before autogenerating * fix tests * fix Windows... * warn user when behavior is undetermined * oops * fix typo
This commit is contained in:
parent
b03431f139
commit
1ca07f8466
9 changed files with 120 additions and 128 deletions
|
@ -1361,6 +1361,17 @@ Object {
|
|||
|
||||
exports[`site with custom sidebar items generator sidebarItemsGenerator is called with appropriate data 1`] = `
|
||||
Object {
|
||||
"categoriesMetadata": Object {
|
||||
"3-API": Object {
|
||||
"label": "API (label from _category_.json)",
|
||||
},
|
||||
"3-API/02_Extension APIs": Object {
|
||||
"label": "Extension APIs (label from _category_.yml)",
|
||||
},
|
||||
"Guides": Object {
|
||||
"position": 2,
|
||||
},
|
||||
},
|
||||
"defaultSidebarItemsGenerator": [Function],
|
||||
"docs": Array [
|
||||
Object {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue