From c727071ae6abb74cf130bea690a03f6f6669b0eb Mon Sep 17 00:00:00 2001 From: neeboo Date: Fri, 9 Aug 2019 15:12:36 +0800 Subject: [PATCH] chore(docs):fix docs generating --- scripts/docs.ts | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/scripts/docs.ts b/scripts/docs.ts index 97c5b74..7e8e738 100644 --- a/scripts/docs.ts +++ b/scripts/docs.ts @@ -52,48 +52,4 @@ async function docs() { } } -// docs(); - -async function batchDocs() { - await preProcessFunc(preProcessProjects); - // const srcArry = []; - // for (const pkg of projects) { - // srcArry.push(pkg.src); - - // } -} - -batchDocs(); - -// async function docs() { -// await preProcessFunc(preProcessProjects); - -// for (const pkg of projects) { -// const app = new Application({ -// mode: 'file', -// tsconfig: `${pkg.path}/tsconfig.json`, -// theme: 'markdown', -// plugin: path.resolve('node_modules/typedoc-plugin-markdown'), -// platform: 'gitbook', -// }); - -// const files = [...app.expandInputFiles([pkg.src])]; -// app.options.setValue('platform', 'gitbook'); -// // const project = app.convert(); -// const outputDir = `${pkg.path}/doc`; - -// // Rendered docs -// app.generateDocs(files, outputDir); -// // if (project) { -// // // Project may not have converted correctly -// // const outputDir = `${pkg.path}/doc`; - -// // // Rendered docs -// // app.generateDocs(project, outputDir); -// // // Alternatively generate JSON output -// // // app.generateJson(project, outputDir + '/documentation.json'); -// // } -// } -// } - -// docs(); +docs();