gatsby-source-jsdoc

Gatsby source plugin which uses jsdoc-api to generate JavaScript documentation


Keywords
jsdoc, gatsby, gatsby-plugin, gatsby-source
License
MIT
Install
npm install gatsby-source-jsdoc@0.2.4

Documentation

gatsby-source-jsdoc

NPM

This plugin requires an instance of gatsby-source-filesystem to provide the source files. Then gatsby-source-jsdoc will generate Markdown files for gatsby-transformer-remark to process.

Install

$ npm install --save gatsby-source-jsdoc

How to use

Add the plugin to your gatsby-config.js and ensure sourceDir is pointed to the directory of your JavaScript source files.

{
  plugins: [
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        name: 'source',
        path: `${__dirname}/src/`,
      },
    },
    {
      resolve: 'gatsby-source-jsdoc',
      options: {
        sourceDir: `${__dirname}/src/`,
      },
    },
  ],
}