diff --git a/README.md b/README.md index 3bb3a05..7b895ff 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ npm i vuepress-jsdoc -g **Example:** ```bash -vuepress-jsdoc --source=./src --dist=./documentation --folder=./code --title=API +# search code in src and move it to code (./documentation/code) in your vuepress folder (./documentation) +vuepress-jsdoc --source=./src --dist=./documentation --folder=code --title=API ``` ### Options diff --git a/index.js b/index.js index 8a3db41..ce230e8 100755 --- a/index.js +++ b/index.js @@ -123,12 +123,10 @@ const readFiles = async (folder, depth = 0, tree) => { mdFileData = await vuedoc.md({ filename: `${folder}/${file}` }); - console.log(mdFileData); } else if (/\.(js|ts)$/.test(file)) { // render file mdFileData = await jsdoc2md.render({ source: fileData, - // partial: [path.resolve(__dirname, './template/partials/all-docs/docs/header.hbs')] partial: [ path.resolve(__dirname, './template/header.hbs'), path.resolve(__dirname, './template/main.hbs')