diff --git a/components/Sidebar/Sidebar.jsx b/components/Sidebar/Sidebar.jsx index 49017bb..e713b60 100644 --- a/components/Sidebar/Sidebar.jsx +++ b/components/Sidebar/Sidebar.jsx @@ -190,6 +190,7 @@ const iconMap = { '/developers/architecture': TreeStructure, '/developers/contributing': GitBranch, '/developers/api': Plug, + '/developers/migration': ArrowsClockwise, // Developers > Architecture '/developers/architecture/frontend': Browser, @@ -203,6 +204,11 @@ const iconMap = { // Developers > API '/developers/api/authentication': Key, '/developers/api/endpoints': Plug, + + // Developers > Migration + '/developers/migration/programmatic': Code, + '/developers/migration/activity-types': Stack, + '/developers/migration/assisted': Brain, } function getIcon(route) { diff --git a/components/Wrapper/Wrapper.jsx b/components/Wrapper/Wrapper.jsx index a108c25..3727c41 100644 --- a/components/Wrapper/Wrapper.jsx +++ b/components/Wrapper/Wrapper.jsx @@ -13,13 +13,22 @@ function Breadcrumb() { if (!activePath || activePath.length <= 1) return null + // Nextra emits both a folder entry and its index page with the same route + // (e.g. /developers/migration appears twice once you open /developers/migration). + // Collapse consecutive duplicates so React keys stay unique and the trail + // does not show the same crumb twice. + const trail = activePath.filter((item, i, arr) => { + const next = arr[i + 1] + return !next || next.route !== item.route + }) + return (