@vuepress-denaro/vuepress-plugin-autodoc
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

vuepress-plugin-autodoc

🎉 Generate javascript documentation with jsdoc.使用 jsdoc 生成 javascript 文档.

npm version GitHub stars GitHub issues
jsdelivr NPM

Usage

  • Install
# npm
npm install @vuepress-denaro/vuepress-plugin-autodoc

# yarn
yarn add @vuepress-denaro/vuepress-plugin-autodoc
  • Update plugins in .vuepress/config.js or .vuepress/config.ts

js

const { autodocPlugin } = require('@vuepress-denaro/vuepress-plugin-autodoc')
module.exports = {
  plugins: [
    autodocPlugin({
      rootPath: '', // Replacement path for '@root'
    }),
  ],
}

ts

import { autodocPlugin } from '@vuepress-denaro/vuepress-plugin-autodoc'
import { defineUserConfig } from '@vuepress/cli'

export default defineUserConfig({
  plugins: [
    autodocPlugin({
      rootPath: '', // Replacement path for '@root'
    }),
  ],
})
  • Write markdown
@[autodoc]{@/.vuepress/vue-previews/demo.js}

Thanks

vuepress-plugin-autodoc

Package Sidebar

Install

npm i @vuepress-denaro/vuepress-plugin-autodoc

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

17.2 kB

Total Files

20

Last publish

Collaborators

  • vxhly