7.13.1 • Published 3 months ago

gatsby-transformer-documentationjs v7.13.1

Weekly downloads
885
License
MIT
Repository
github
Last release
3 months ago

gatsby-transformer-documentationjs

Uses Documentation.js to extract code metadata (JSDocs is supported currently though Flow is also supported by Documentation.js and can be added to this plugin as well).

It's used on gatsbyjs.com and can be seen in use on several pages there e.g. https://www.gatsbyjs.com/docs/node-apis/

Install

npm install gatsby-transformer-documentationjs

How to use

Add the plugin to your gatsby-config.js.

plugins: [`gatsby-transformer-documentationjs`]

Ensure that there's an instance of gatsby-source-filesystem that's pointed at your source code e.g.

plugins: [
  `gatsby-transformer-documentationjs`,
  {
    resolve: `gatsby-source-filesystem`,
    options: {
      name: `source`,
      path: `${__dirname}/../src/`,
    },
  },
]

Then you can write GraphQL queries pulling out JSDoc comments like:

{
  allDocumentationJs {
    edges {
      node {
        name
        description {
          childMarkdownRemark {
            html
          }
        }
        returns {
          title
        }
        examples {
          raw
          highlighted
        }
        params {
          name
          type {
            name
          }
          description {
            childMarkdownRemark {
              html
            }
          }
        }
      }
    }
  }
}
7.14.0-next.2

3 months ago

7.13.1

3 months ago

7.14.0-next.1

4 months ago

7.13.0

5 months ago

7.14.0-next.0

5 months ago

7.12.0

8 months ago

7.13.0-next.0

9 months ago

7.11.0-next.1

11 months ago

7.11.0-next.0

12 months ago

7.11.0

11 months ago

7.10.0

12 months ago

7.12.0-next.0

11 months ago

7.10.0-next.1

1 year ago

7.10.0-next.0

1 year ago

7.10.0-next.2

12 months ago

7.9.0

1 year ago

7.8.0-next.0

1 year ago

7.9.0-next.0

1 year ago

7.7.0

1 year ago

7.8.0

1 year ago

7.4.0

1 year ago

7.5.0

1 year ago

7.6.0

1 year ago

7.6.0-next.0

1 year ago

7.7.0-next.0

1 year ago

5.15.0

1 year ago

7.3.0

1 year ago

7.1.0-next.0

1 year ago

7.2.0-next.0

1 year ago

7.4.0-next.0

1 year ago

7.4.0-next.1

1 year ago

6.25.0

1 year ago

7.3.0-next.0

1 year ago

7.0.0-next.3

1 year ago

7.0.0-next.1

2 years ago

7.0.0-next.2

2 years ago

7.0.0-next.0

2 years ago

7.0.0

1 year ago

7.1.0

1 year ago

7.2.0

1 year ago

7.5.0-next.0

1 year ago

6.24.0-next.0

2 years ago

6.24.0

2 years ago

6.23.0-next.0

2 years ago

6.23.0

2 years ago

6.22.0

2 years ago

6.25.0-next.0

2 years ago

6.20.0

2 years ago

6.17.0

2 years ago

6.18.0-next.0

2 years ago

6.18.0-next.1

2 years ago

6.19.0-next.1

2 years ago

6.19.0-next.0

2 years ago

6.16.0

2 years ago

6.21.0-next.0

2 years ago

6.16.0-next.0

2 years ago

6.22.0-next.0

2 years ago

6.15.0

2 years ago

6.17.0-next.1

2 years ago

6.17.0-next.0

2 years ago

6.19.0

2 years ago

6.20.0-next.0

2 years ago

6.21.0

2 years ago

6.18.0

2 years ago

6.14.0-next.1

2 years ago

6.14.0-next.2

2 years ago

6.14.0-next.0

2 years ago

6.14.0

2 years ago

6.13.0

2 years ago

6.15.0-next.0

2 years ago

6.12.0-next.0

2 years ago

6.11.0-next.0

2 years ago

6.11.0-next.1

2 years ago

6.13.0-next.0

2 years ago

6.12.0

2 years ago

6.12.1

2 years ago

6.11.0

2 years ago

6.10.0

2 years ago

6.9.0

2 years ago

6.10.0-next.0

2 years ago

6.10.0-next.1

2 years ago

6.5.0

2 years ago

6.6.0

2 years ago

6.9.0-next.0

2 years ago

6.7.0

2 years ago

6.8.0

2 years ago

6.6.0-next.0

2 years ago

6.8.0-next.0

2 years ago

6.5.0-next.0

2 years ago

6.4.0-next.0

2 years ago

6.3.0

2 years ago

6.4.0

2 years ago

6.7.0-next.0

2 years ago

6.3.0-next.0

2 years ago

6.2.0

2 years ago

6.1.0

2 years ago

6.2.0-next.0

3 years ago

6.0.0

3 years ago

6.1.0-next.0

3 years ago

6.0.0-zz-next.2

3 years ago

5.14.0

3 years ago

6.0.0-zz-next.8

3 years ago

6.0.0-zz-next.1

3 years ago

6.0.0-next.0

3 years ago

6.0.0-next.1

3 years ago

5.14.0-next.3

3 years ago

5.14.0-next.2

3 years ago

5.14.0-next.1

3 years ago

5.13.0

3 years ago

5.14.0-next.0

3 years ago

5.12.0

3 years ago

5.13.0-next.0

3 years ago

5.12.0-next.3

3 years ago

5.12.0-next.2

3 years ago

5.12.0-next.1

3 years ago

5.11.0

3 years ago

5.12.0-next.0

3 years ago

5.10.0

3 years ago

5.11.0-next.0

3 years ago

5.10.0-next.1

3 years ago

5.9.0

3 years ago

5.10.0-next.0

3 years ago

5.8.0

3 years ago

5.9.0-next.0

3 years ago

5.8.0-next.1

3 years ago

5.8.0-next.0

3 years ago

5.7.0-next.2

3 years ago

5.7.0-next.1

3 years ago

5.6.0

3 years ago

5.7.1

3 years ago

5.7.0

3 years ago

5.5.0-next.0

3 years ago

5.4.0

3 years ago

5.6.0-next.0

3 years ago

5.5.0

3 years ago

5.7.0-next.0

3 years ago

5.3.0

3 years ago

5.4.0-next.0

3 years ago

5.3.0-next.1

3 years ago

5.2.0

3 years ago

5.3.0-next.0

3 years ago

5.1.0

3 years ago

5.2.0-next.0

3 years ago

5.0.0

3 years ago

5.1.0-next.0

3 years ago

5.1.0-next.1

3 years ago

5.0.0-v3rc.0

3 years ago

5.0.0-next.0

3 years ago

4.10.0

3 years ago

4.11.0-next.0

3 years ago

4.9.0

3 years ago

4.10.0-next.0

3 years ago

4.9.0-next.1

3 years ago

4.8.0

3 years ago

4.9.0-next.0

3 years ago

4.7.0

3 years ago

4.8.0-next.0

3 years ago

4.6.0

3 years ago

4.7.0-next.0

3 years ago

4.5.0

3 years ago

4.6.0-next.0

3 years ago

4.4.0

3 years ago

4.5.0-next.0

3 years ago

4.4.0-next.1

3 years ago

4.4.0-next.0

3 years ago

4.3.17

4 years ago

4.3.16

4 years ago

4.3.15

4 years ago

4.3.14

4 years ago

4.3.13

4 years ago

4.3.12

4 years ago

4.3.11

4 years ago

4.3.10

4 years ago

4.3.8

4 years ago

4.3.7

4 years ago

4.3.6

4 years ago

4.3.5

4 years ago

4.3.4

4 years ago

4.3.3

4 years ago

4.3.2

4 years ago

4.3.1

4 years ago

4.3.0

4 years ago

4.2.5

4 years ago

4.2.4

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.27

4 years ago

4.1.26

4 years ago

4.1.25

4 years ago

4.1.24

4 years ago

4.1.23

4 years ago

4.1.22

4 years ago

4.1.20

4 years ago

4.1.19

4 years ago

4.1.18

4 years ago

4.1.17

4 years ago

4.1.16

5 years ago

4.1.15

5 years ago

4.1.14

5 years ago

4.1.13

5 years ago

4.1.11

5 years ago

4.1.10

5 years ago

4.1.9

5 years ago

4.1.8

5 years ago

4.1.7

5 years ago

4.1.6

5 years ago

4.1.5

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.5

5 years ago

2.0.5-alpha.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-rc.5

6 years ago

2.0.0-rc.1

6 years ago

2.0.0-rc.0

6 years ago

2.0.0-beta.3

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

2.0.0-beta.0

6 years ago

2.0.0-alpha.2

6 years ago

1.4.10-13

6 years ago

1.4.10-12

6 years ago

1.4.10-11

6 years ago

1.4.10-10

6 years ago

1.4.10-9

6 years ago

1.4.10-5

6 years ago

1.4.10-4

6 years ago

1.4.10-3

6 years ago

1.4.10-2

6 years ago

1.4.10-1

6 years ago

1.4.10

6 years ago

1.4.10-0

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-beta.6

7 years ago

1.0.0-beta.1

7 years ago

1.0.0-alpha.22

7 years ago

1.0.0-alpha17

7 years ago