Skip to content

Latest commit

Β 

History

History
60 lines (47 loc) Β· 2.06 KB

README.md

File metadata and controls

60 lines (47 loc) Β· 2.06 KB

GraphQL-Markdown + Next.js/Fumadocs demo

Open with CodeSandbox

πŸš€ Project Structure

Inside your GraphQL-Markdown + Next.js/Fumadocs project, you'll see the following folders and files:

.
β”œβ”€β”€ app/
|   β”œβ”€β”€(home)/
|   β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   └── index.mdx
β”‚   β”œβ”€β”€ docs/
β”‚   β”‚   └── [[...slug]]
β”‚   β”‚       └── page.tsx
β”‚   β”œβ”€β”€ globals.css
|   β”œβ”€β”€ layout.config.tsx
|   └── layout.tsx
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ fumadocs-mdx.cjs
β”‚   └── source.ts
β”œβ”€β”€ next.config.mjs
β”œβ”€β”€ graphql.config.mjs
β”œβ”€β”€ postcss.config.mjs
β”œβ”€β”€ source.config.mjs
β”œβ”€β”€ package.json
└── tsconfig.json

🧞 Commands

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 dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run start Starts local production server at localhost:3000

🏎️ Quick start

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.

πŸ‘€ Want to learn more?

Check out GraphQL-Markdown's docs.