-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix sidebar for documentation and /api-v16
#4331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
5d94640
013119f
a46ae20
72b0a41
6c3d414
104fde7
5a048ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| import nextra from 'nextra'; | ||
| import path from 'node:path'; | ||
| import vercel from './vercel.json' with { type: 'json' } | ||
|
|
||
| const withNextra = nextra({ | ||
| theme: 'nextra-theme-docs', | ||
|
|
@@ -27,6 +28,7 @@ export default withNextra({ | |
| }); | ||
| return config; | ||
| }, | ||
| redirects: async () => vercel.redirects, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to have same redirects locally |
||
| output: 'export', | ||
| images: { | ||
| loader: 'custom', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,8 @@ | ||
| const meta = { | ||
| index: '', | ||
| '-- 1': { | ||
| type: 'separator', | ||
| title: 'GraphQL.JS Tutorial', | ||
| docs: { | ||
| type: 'page', | ||
| title: 'Documentation' | ||
|
||
| }, | ||
| 'getting-started': '', | ||
| 'running-an-express-graphql-server': '', | ||
| 'graphql-clients': '', | ||
| 'basic-types': '', | ||
| 'passing-arguments': '', | ||
| 'object-types': '', | ||
| 'mutations-and-input-types': '', | ||
| 'authentication-and-express-middleware': '', | ||
| '-- 2': { | ||
| type: 'separator', | ||
| title: 'Advanced Guides', | ||
| }, | ||
| 'constructing-types': '', | ||
| 'oneof-input-objects': 'OneOf input objects', | ||
| 'defer-stream': '', | ||
| '-- 3': { | ||
| type: 'separator', | ||
| title: 'FAQ', | ||
| }, | ||
| 'going-to-production': '', | ||
| 'api-v16': { | ||
| type: 'menu', | ||
| title: 'API', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| const meta = { | ||
| index: '', | ||
| '-- 1': { | ||
| type: 'separator', | ||
| title: 'GraphQL.JS Tutorial', | ||
| }, | ||
| 'getting-started': '', | ||
| 'running-an-express-graphql-server': '', | ||
| 'graphql-clients': '', | ||
| 'basic-types': '', | ||
| 'passing-arguments': '', | ||
| 'object-types': '', | ||
| 'mutations-and-input-types': '', | ||
| 'authentication-and-express-middleware': '', | ||
| '-- 2': { | ||
| type: 'separator', | ||
| title: 'Advanced Guides', | ||
| }, | ||
| 'constructing-types': '', | ||
| 'oneof-input-objects': '', | ||
| 'defer-stream': '', | ||
| '-- 3': { | ||
| type: 'separator', | ||
| title: 'FAQ', | ||
| }, | ||
| 'going-to-production': '', | ||
| }; | ||
|
|
||
| export default meta; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ module.exports = { | |
| content: [ | ||
| './pages/**/*.{ts,tsx,mdx}', | ||
| './icons/**/*.{ts,tsx,mdx}', | ||
| './css/**/*.css', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you should not include |
||
| './theme.config.tsx', | ||
| ], | ||
| theme: { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.