MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / docsRoot

Function docsRoot

apps/api/src/lib/docs.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 * Resolved per-call (not a module const) so tests can point it at a fixture.
13 */
14export function docsRoot(): string {
15 return process.env.DOCS_ROOT
16 ? resolve(process.env.DOCS_ROOT)
17 : resolve(process.cwd(), "..", "..", "docs");
18}
19
20/**
21 * Resolve a URL slug to an absolute path under the docs root, or null if the

Callers 1

resolveDocPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected