(ref, path)
| 281 | } |
| 282 | |
| 283 | async function fetchFileCached(ref, path) { |
| 284 | const key = `${ref}:${path}`; |
| 285 | if (state.fileContentCache.has(key)) return state.fileContentCache.get(key); |
| 286 | const text = await fetchText(rawUrl(ref, path)); |
| 287 | state.fileContentCache.set(key, text); |
| 288 | return text; |
| 289 | } |
| 290 | |
| 291 | async function buildSingleLibraryHeader(libraryName, ref, tree) { |
| 292 | const ctx = { |