We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a834d8 commit 703ef77Copy full SHA for 703ef77
scripts/docgen-compat/generate-docs.js
@@ -39,11 +39,12 @@ const { api: apiType, source: sourceFile } = yargs
39
.version(false)
40
.help().argv;
41
42
-const docPath = path.resolve(`${__dirname}/html/${apiType}`);
+const destinationDir = apiType === 'js' ? 'js/v8' : apiType;
43
+const docPath = path.resolve(`${__dirname}/html/${destinationDir}`);
44
const contentPath = path.resolve(`${__dirname}/content-sources/${apiType}`);
45
const tempHomePath = path.resolve(`${contentPath}/HOME_TEMP.md`);
46
const tempNodeSourcePath = path.resolve(`${__dirname}/index.node.d.ts`);
-const devsitePath = `/docs/reference/${apiType}/`;
47
+const devsitePath = `/docs/reference/${destinationDir}/`;
48
49
/**
50
* Strips path prefix and returns only filename.
0 commit comments