-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] remove
next-seo
and useNextSeoProps
, use head
option inste…
…ad (#2337)
- Loading branch information
Dimitri POSTOLOV
authored
Sep 24, 2023
1 parent
6eb3118
commit ea1a736
Showing
20 changed files
with
164 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'nextra-theme-docs': major | ||
--- | ||
|
||
remove `next-seo` and `useNextSeoProps`, use `head` option instead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { useConfig } from 'nextra-theme-docs' | ||
|
||
/* eslint sort-keys: error */ | ||
/** | ||
* @type {import('nextra-theme-docs').DocsThemeConfig} | ||
*/ | ||
export default { | ||
banner: { | ||
content: 'Nextra 2 Alpha', | ||
key: 'Nextra 2' | ||
}, | ||
chat: { | ||
link: 'https://discord.gg/hEM84NMkRv' // Next.js discord server, | ||
}, | ||
docsRepositoryBase: | ||
'https://github.com/shuding/nextra/blob/core/examples/docs', | ||
editLink: { | ||
content: 'Edit this page on GitHub' | ||
}, | ||
faviconGlyph: '✦', | ||
head: function useHead() { | ||
const config = useConfig() | ||
const title = `${config.title} – Nextra` | ||
const description = | ||
config.frontMatter.description || 'Nextra: the Next.js site builder' | ||
const image = config.frontMatter.image || 'https://nextra.site/og.jpeg' | ||
return ( | ||
<> | ||
<title>{title}</title> | ||
<meta property="og:title" content={title} /> | ||
<meta name="description" content={description} /> | ||
<meta property="og:description" content={description} /> | ||
<meta name="og:image" content={image} /> | ||
|
||
<meta name="msapplication-TileColor" content="#fff" /> | ||
<meta httpEquiv="Content-Language" content="en" /> | ||
<meta name="apple-mobile-web-app-title" content="Nextra" /> | ||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" /> | ||
|
||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" content="https://nextra.site" /> | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/apple-icon-180x180.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="192x192" | ||
href="/android-icon-192x192.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="96x96" | ||
href="/favicon-96x96.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/favicon-16x16.png" | ||
/> | ||
</> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.