MCPcopy Index your code
hub / github.com/github/docs / recurse

Function recurse

script/dev-toc/generate.js:39–47  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

37 const req = { language: 'en', cookies: {} }
38
39 async function recurse(tree) {
40 const { page } = tree
41 tree.renderedFullTitle = page.rawTitle.includes('{')
42 ? await await liquid.parseAndRender(page.rawTitle, req.context)
43 : page.rawTitle
44 for (const node of tree.childPages || []) {
45 await recurse(node)
46 }
47 }
48
49 for (const version of allVersionKeys) {
50 req.pagePath = version === fpt ? '/' : `/${version}`

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected