typedoc-plugin-graphql

1.0.3 • Public • Published

typedoc-plugin-graphql

This typedoc plugin adds support for GraphQL code highlighting.

Package version License

Installation

This plugin is published as an npm package. You can install it through npm or yarn.

# Using yarn
yarn add typedoc-plugin-graphql

# Using npm
npm install typedoc-plugin-graphql

Once installed, typedoc will automatically detect and use it.

Example

This below example will now properly render and highlight the solidity code in the comment.

/**
 * Queries for Blog Posts
 *
 * ```graphql
 * query BlogPostQuery {
 *   latestPosts(limit: 10) {
 *     url
 *     summary
 *     content
 *     datePosted
 *   }
 * }
 * ```
 */
@customElement('blog-posts')
class BlogPosts extends ApolloQuery<Data, Variables> {
  query = BlogPostQuery;
  // ...
}

Contributing

Third party contributions to this project are welcome and encouraged. If you want to contribute, please open an issue before submtting a pull requests so we can discuss the proposed changes and/or additions.

Package Sidebar

Install

npm i typedoc-plugin-graphql

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

15.2 kB

Total Files

13

Last publish

Collaborators

  • bennyp