MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / resolveTemplateRoot

Function resolveTemplateRoot

apps/docs/scripts/docs-catalog-lib.mjs:20–28  ·  view source on GitHub ↗
(envKey, siblingName)

Source from the content-addressed store, hash-verified

18 * point rather than in the published docs site.
19 */
20export function resolveTemplateRoot(envKey, siblingName) {
21 const fromEnv = process.env[envKey];
22
23 if (fromEnv !== undefined && fromEnv !== "") {
24 return resolve(fromEnv);
25 }
26
27 return resolve(DOCS_ROOT, "..", siblingName);
28}
29
30/*
31 * Child exports run in sibling apps the docs build does not control: a

Callers 2

buildLintMetaCatalogFunction · 0.85
buildScriptsCatalogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected