fix(docs): bump next.js
version & fix meta warnings (#4327)
* chore(docs): bump `next` version * docs: fix meta warnings
This commit is contained in:
parent
1033c9d4f3
commit
7b4bd9a016
BIN
docs/bun.lockb
BIN
docs/bun.lockb
Binary file not shown.
@ -3,6 +3,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.spanStyle {
|
.spanStyle {
|
||||||
font-family: 'Orbitron';
|
font-family: var(--font-orbitron);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
7
docs/font.ts
Normal file
7
docs/font.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import {Orbitron} from 'next/font/google';
|
||||||
|
|
||||||
|
export const orbitron = Orbitron({
|
||||||
|
display: 'swap',
|
||||||
|
subsets: ['latin'],
|
||||||
|
weight: ['400', '900'],
|
||||||
|
});
|
2
docs/next-env.d.ts
vendored
2
docs/next-env.d.ts
vendored
@ -2,4 +2,4 @@
|
|||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"build": "bun next build"
|
"build": "bun next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^13.5.4",
|
"@next/third-parties": "14.2.20",
|
||||||
|
"next": "14.2.20",
|
||||||
"nextra": "^2.13.2",
|
"nextra": "^2.13.2",
|
||||||
"nextra-theme-docs": "^2.13.2",
|
"nextra-theme-docs": "^2.13.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
@ -18,4 +19,4 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bun-types": "latest"
|
"bun-types": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
docs/pages/_app.mdx
Normal file
14
docs/pages/_app.mdx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import {orbitron} from '../font';
|
||||||
|
|
||||||
|
export default function Nextra({Component, pageProps}) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<style jsx global>{`
|
||||||
|
:root {
|
||||||
|
--font-orbitron: ${orbitron.style.fontFamily};
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
<Component {...pageProps} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import {GoogleAnalytics} from '@next/third-parties/google';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
head: (
|
head: (
|
||||||
@ -26,27 +27,12 @@ export default {
|
|||||||
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
|
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
|
||||||
/>
|
/>
|
||||||
<meta name="twitter:image:alt" content="React Native Video" />
|
<meta name="twitter:image:alt" content="React Native Video" />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
type="image/png"
|
type="image/png"
|
||||||
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
|
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
|
||||||
/>
|
/>
|
||||||
<script
|
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
|
||||||
async
|
|
||||||
src="https://www.googletagmanager.com/gtag/js?id=G-PM2TQQQMDN"
|
|
||||||
/>
|
|
||||||
<script>
|
|
||||||
{`window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', 'G-PM2TQQQMDN');`}
|
|
||||||
</script>
|
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
logo: (
|
logo: (
|
||||||
|
Loading…
Reference in New Issue
Block a user