free-jsdoc

1.0.5 • Public • Published

jsdoc

介绍

依赖于jsdoc输出项目文档

安装教程

  1. npm i -D free-jsdoc

默认配置

module.exports = {
  plugins: ['node_modules/free-jsdoc/jsdoc-vuejs'],
  recurseDepth: 10,
  source: {
    include: 'src/components',
    includePattern: '\\.vue$', // 将以.js, .vue结尾的文件作为源文件
    excludePattern: '(^|\\/|\\\\)_',
  },
  sourceType: 'module',
  tags: {
    allowUnknownTags: true,
    dictionaries: ['jsdoc', 'closure'],
  },
  templates: {
    cleverLinks: false,
    monospaceLinks: false,
    useLongnameInNav: false,
    showInheritedInNav: true,
  },
  opts: {
    recurse: true, // 是否递归
    verbose: false, // 是否输出详细信息
    destination: 'docs', // 将生成的文放到指定目录下,如不指定,默认输出到 out 文件夹下
    template: 'node_modules/free-jsdoc/clean-jsdoc-theme',
    theme_opts: {
      default_theme: 'dark', // or "light" // 修改主题,默认是 dark
      search: true,
      displayModuleHeader: false
    },
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i free-jsdoc

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

996 kB

Total Files

89

Last publish

Collaborators

  • fengdehua