This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Menu
Nathan Firmo edited this page Feb 4, 2022
·
1 revision
The information that feeds the side menu comes from the wiki.config.json file, which is in the root of the project, so just change it to change the menu.
This file has the structure shown below. For purposes of comparison, the name of the page group you are reading is 'About this docs', the name of the tab is 'Add a tab on menu' and the component name is 'AddMenuTab'.
The 'component' property must be created with the same name from the file corresponding to the page, but without the .tsx extension
{
"menuElements": [
{
"label": "GroupName",
"children": [
{
"label": "Label",
"component": "ComponentName",
"subItems": []
}
]
}
]
}
To turn a tab into a subtitle, you set the component to null.
{
"menuElements": [
{
"label": "GroupName",
"children": [
{
"label": "Label"
"component": null,
"subItems": [
{
"label": "Label",
"component": "ComponentName"
}
]
}
]
}
]
}