MCPcopy Index your code
hub / github.com/tinyplex/tinybase / addDemoDocs

Function addDemoDocs

site/demo.ts:286–307  ·  view source on GitHub ↗
(
  docs: Docs,
  esbuild: any,
  baseUrl: string,
)

Source from the content-addressed store, hash-verified

284};
285
286export const addDemoDocs = async (
287 docs: Docs,
288 esbuild: any,
289 baseUrl: string,
290): Promise<void> => {
291 const demoDocs: Promise<void>[] = [];
292 docs.forEachNode((node) => {
293 if (!hasExecutables(node)) {
294 return;
295 }
296 demoDocs.push(
297 getDemoDoc(
298 esbuild,
299 node.executables as ResolvedExecutables,
300 baseUrl,
301 ).then((demoDoc) => {
302 (node as Node & {__demoDoc?: string}).__demoDoc = demoDoc;
303 }),
304 );
305 });
306 await Promise.all(demoDocs);
307};

Callers 1

buildFunction · 0.90

Calls 2

hasExecutablesFunction · 0.85
getDemoDocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…