1- import React from 'react' ;
2- import { DocsThemeConfig , ThemeSwitch , useConfig } from 'nextra-theme-docs' ;
1+ /* eslint-disable internal-rules/only-ascii */
32import NextLink from 'next/link' ;
3+ import { useRouter } from 'next/router' ;
4+ import type { DocsThemeConfig } from 'nextra-theme-docs' ;
5+ import { ThemeSwitch , useConfig } from 'nextra-theme-docs' ;
6+ import React from 'react' ;
7+
48import {
9+ DiscordIcon ,
10+ GitHubIcon ,
511 GraphQLWordmarkLogo ,
612 StackOverflowIcon ,
7- GitHubIcon ,
8- DiscordIcon ,
913 TwitterIcon ,
1014} from './icons/index' ;
11- import { useRouter } from 'next/router' ;
1215
1316const graphQLLogo = (
1417 < GraphQLWordmarkLogo className = "h-8 nextra-logo" title = "GraphQL" />
@@ -23,7 +26,7 @@ function List({
2326 items,
2427} : {
2528 title : string ;
26- items : { title : string ; url : string } [ ] ;
29+ items : Array < { title : string ; url : string } > ;
2730} ) {
2831 return (
2932 < ul className = "text-sm flex flex-col gap-4 max-lg:w-[46%]" >
@@ -196,14 +199,18 @@ const cfg: DocsThemeConfig = {
196199 < >
197200 < title > { title } </ title >
198201 < meta property = "og:title" content = { title } />
199- { description && (
202+ { description != null && description !== '' && (
200203 < >
201204 < meta name = "description" content = { description } />
202205 < meta property = "og:description" content = { description } />
203206 </ >
204207 ) }
205- { canonical && < link rel = "canonical" href = { canonical } /> }
206- { image && < meta name = "og:image" content = { image } /> }
208+ { canonical != null && canonical !== '' && (
209+ < link rel = "canonical" href = { canonical } />
210+ ) }
211+ { image != null && image !== '' && (
212+ < meta name = "og:image" content = { image } />
213+ ) }
207214 < meta property = "og:image" content = "/img/og-image.png" />
208215 < meta property = "twitter:site" content = "@graphql" />
209216 </ >
@@ -212,7 +219,7 @@ const cfg: DocsThemeConfig = {
212219 banner : {
213220 content : (
214221 < >
215- 🎬 That' s a Wrap for GraphQLConf 2024! • Watch the Videos •{ ' ' }
222+ 🎬 That' s a Wrap for GraphQLConf 2024! • Watch the Videos •{ ' ' }
216223 < NextLink
217224 href = "https://graphql.org/conf/2024"
218225 className = "underline after:content-['_→'] after:font-sans"
0 commit comments