@graphql-markdown/docusaurus
Version:
Docusaurus plugin for generating Markdown documentation from a GraphQL schema.
42 lines (25 loc) • 2.54 kB
Markdown
# @graphql-markdown/docusaurus
[](https://www.npmjs.com/package/@graphql-markdown/docusaurus)
[](https://raw.githubusercontent.com/graphql-markdown/graphql-markdown/main/LICENSE)
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_docusaurus)
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_docusaurus)
[](https://dashboard.stryker-mutator.io/reports/github.com/graphql-markdown/graphql-markdown/main?module=docusaurus)
**Docusaurus** [docs feature](https://docusaurus.io/docs/docs-introduction) plugin for generating **Markdown documentation** from a **GraphQL schema**.
## Installation
```shell
npm init docusaurus my-website https://github.com/graphql-markdown/template.git
```
> _If you already have an existing Docusaurus installation, then see the [documentation](https://graphql-markdown.dev/docs/get-started/#existing-docusaurus-site) for an alternative installation._
## Usage
The plugin adds a new command `graphql-to-doc` to the [Docusaurus CLI](https://docusaurus.io/docs/cli).
```shell
npx docusaurus graphql-to-doc
```
Command line options are described in the [documentation settings](https://graphql-markdown.dev/docs/settings) page.
## Configuration
See [documentation settings](https://graphql-markdown.dev/docs/settings) page.
## Troubleshooting
See [documentation troubleshooting](https://graphql-markdown.dev/docs/troubleshooting) page.
## License
GraphQL-Markdown packages are 100% free and open-source, under the [MIT license](https://github.com/graphql-markdown/graphql-markdown/blob/main/LICENSE).
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/graphql-markdown/graphql-markdown) to thank us for our work. By contributing to the Treeware forest, you’ll be creating employment for local families and restoring wildlife habitats.