(envKey, siblingName)
| 18 | * point rather than in the published docs site. |
| 19 | */ |
| 20 | export 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 |
no outgoing calls
no test coverage detected