MCPcopy
hub / github.com/mongodb/node-mongodb-native / copyNewDocsToGeneratedSite

Function copyNewDocsToGeneratedSite

etc/docs/build.ts:33–38  ·  view source on GitHub ↗
({ tag }: VersionSchema)

Source from the content-addressed store, hash-verified

31};
32
33async function copyNewDocsToGeneratedSite({ tag }: VersionSchema) {
34 const outputDirectory = `./temp/${tag}`;
35 const pathToBuiltDocs = './build';
36 const command = `cp -R ${pathToBuiltDocs} ${outputDirectory}`;
37 return await exec(command);
38}
39
40async function updateSiteTemplateForNewVersion(
41 newVersion: VersionSchema,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected