Skip to content

Commit 5a593bb

Browse files
committed
updated
1 parent 2c42398 commit 5a593bb

File tree

4 files changed

+546887
-5
lines changed

4 files changed

+546887
-5
lines changed

scripts/exportjson.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const path = require('path');
22
const { exec } = require('child_process');
33

4-
const clientLibraryPath = path.resolve(__dirname, '../../clientlibrary/js');
5-
const command = 'npx typedoc --plugin typedoc-plugin-missing-exports --json ../../docs/scripts/out.json --pretty';
4+
const clientLibraryPath = path.resolve(__dirname, '../../codeboltjs');
5+
const jsonPath = path.resolve(__dirname, '../temp/out.json');
6+
const command = `npx typedoc --plugin typedoc-plugin-missing-exports --json ${jsonPath} --pretty`;
67

78
exec(command, { cwd: clientLibraryPath }, (error, stdout, stderr) => {
89
if (error) {

scripts/jsdoc_to_docusaurus.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11

22
const fs = require('fs');
33

4-
let rawdata = fs.readFileSync('./out.json');
4+
let rawdata = fs.readFileSync('../temp/out.json');
55
let outJson = JSON.parse(rawdata);
66
console.log("Json Parsed");
77

88
const codeboltChild = outJson.children[0].children.find(child => child.name === "Codebolt");
99

10-
fs.writeFileSync('./newfile.json', JSON.stringify(codeboltChild, null, 2));
10+
fs.writeFileSync('../temp/newfile.json', JSON.stringify(codeboltChild, null, 2));
1111

1212

1313
if (codeboltChild && codeboltChild.children) {
1414
codeboltChild.children.forEach(CbProperties => {
15-
const dir = `../codeboltLib/docs/api/${CbProperties.name}`;
15+
const dir = `../docs/api/${CbProperties.name}`;
1616
if (!fs.existsSync(dir)){
1717
fs.mkdirSync(dir, { recursive: true });
1818
}

0 commit comments

Comments
 (0)