MCPcopy
hub / github.com/github/docs / getProductGroups

Function getProductGroups

lib/all-products.js:68–78  ·  view source on GitHub ↗
(pageMap, lang)

Source from the content-addressed store, hash-verified

66}
67
68export 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
80export default {
81 productIds,

Callers 1

productGroupsFunction · 0.90

Calls 1

getPageFunction · 0.70

Tested by

no test coverage detected