Warning
This template is deprecated and the repository is archived. It is no longer updated and pins @graphql-markdown/docusaurus 1.34.0.
To start a new GraphQL-Markdown site with Docusaurus, use the scaffolder instead:
npm create graphql-markdown-docs@latest -- --framework docusaurusThe scaffolder creates the same Docusaurus site, kept in sync with every GraphQL-Markdown release and tested in CI. It uses a bundled example schema by default. To use your own schema, pass --schema <path-or-url> and the scaffolder adds the matching loader. To reproduce this template's setup, use --schema https://countries.trevorblades.com/graphql.
Already created a site from this template? You don't need to migrate. Update @graphql-markdown/docusaurus to the latest version to get new features and fixes.
Docusaurus template for GraphQL-Markdown.
npm init docusaurus my-website https://github.com/graphql-markdown/template.gitUpdate settings in .graphqlrc (see documentation).
schema: 'https://countries.trevorblades.com/graphql'
extensions:
graphql-markdown:
baseURL: '.'
homepage: 'static/index.md'
loaders:
UrlLoader:
module: '@graphql-tools/url-loader'
options:
method: 'POST'
docOptions:
frontMatter:
pagination_next: null
pagination_prev: null
printTypeOptions:
deprecated: 'group'npm run docnpm start