Inside your GraphQL-Markdown + Vite/Vocs project, you'll see the following folders and files:
.
├── assets/
│ └── index.mdx
├── docs/
│ ├── pages/
│ └── styles.css
├── lib/
│ ├── vocs-mdx.cjs
│ └── sidebar.ts
├── vocs.config.ts
├── graphql.config.mjs
├── package.json
└── tsconfig.json
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npx gqlmd graphql-to-doc |
Generate documentation from GraphQL schema |
npm run doc |
Alias of npx gqlmd graphql-to-doc |
npm run dev |
Starts local dev server at localhost:5173 |
npm run build |
Build your production site to ./docs/dist |
Get your demo up and running with these commands:
npm install
npx gqlmd graphql-to-doc
npm run dev
🧑🚀 Edit
graphql.config.msj
to try with your own GraphQL schema.
Check out GraphQL-Markdown's docs.