docz: Duplicated menu when using hierarchy
Bug Report
When adding sub-menu items, I’m facing an item both inside it’s parent and in the root level:
Here is the document configuration:
---
name: Composition
route: /concepts/composition
menu: Concepts
---
And here is the menus config:
// doczrc.js
module.exports = {
menu: [
'Introduction',
'Getting Started',
{ name: 'Development', menu: ['Structure', 'Environment & Commands'] },
{ name: 'Concepts', menu: ['Composition'] },
{ name: 'Reference', menu: ['Routing', 'Layouts & Blocks', 'Menus'] }
]
}
Expected behavior
Once I configure an item to be shown under a parent, it should not be shown in the root level.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 18 (3 by maintainers)
Is there an example of a working implementation of docz v1.2.0 with a custom menu using the above structure? I am getting duplicate entries and the one in the sub-menu is not clickable and does not function, yet the auto-generated duplicate appears to work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
/notstale part2
Any updates on this? Makes using the
menu
option basically infeasible.@pedronauck I’m currently having the same issue on 1.2.0. So I think this is not yet fixed unfortunately.