blob: 6f364d646ec191c14d2c33d98ac8008a0d3db007 [file] [log] [blame]
// This is a common configuration for running jsdoc
// over modules, including custom elements. To use
// this, just create a jsdoc.config.js file in your
// application directory and populate it with:
//
// module.exports = require('../common/jsdoc.common.js');
//
// Add jsdoc via npm:
//
// $ npm add jsdoc
//
// Then add this to your Makefile:
//
// docs:
// npx jsdoc -c jsdoc.config.js
//
// This config loads the element plugin which adds support
// for @evt and @attr tags in documentation.
//
// It also presumes the modules exists under the './modules' directory.
//
// Docs will appear in the ./out directory, which should be added
// to .gitignore.
const path = require('path');
module.exports = {
plugins: [path.resolve(__dirname, './plugins/element')],
source: {
include: ['./modules'],
includePattern: '.+\\.js$',
},
opts: {
recurse: true,
},
};