(pageMap, lang)
| 66 | } |
| 67 | |
| 68 | export function getProductGroups(pageMap, lang) { |
| 69 | return data.childGroups.map((group) => { |
| 70 | return { |
| 71 | name: group.name, |
| 72 | icon: group.icon || null, |
| 73 | octicon: group.octicon || null, |
| 74 | // Typically the children are product IDs, but we support deeper page paths too |
| 75 | children: group.children.map((id) => productMap[id] || getPage(id, lang, pageMap)), |
| 76 | } |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | export default { |
| 81 | productIds, |
no test coverage detected