Skip to content

Commit 7b4bd9a

Browse files
authored
fix(docs): bump next.js version & fix meta warnings (#4327)
* chore(docs): bump `next` version * docs: fix meta warnings
1 parent 1033c9d commit 7b4bd9a

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

docs/bun.lockb

749 Bytes
Binary file not shown.

docs/components/PlatformsList/PlatformsList.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
}
44

55
.spanStyle {
6-
font-family: 'Orbitron';
6+
font-family: var(--font-orbitron);
77
font-weight: 800;
88
}

docs/font.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {Orbitron} from 'next/font/google';
2+
3+
export const orbitron = Orbitron({
4+
display: 'swap',
5+
subsets: ['latin'],
6+
weight: ['400', '900'],
7+
});

docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

docs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "bun next build"
99
},
1010
"dependencies": {
11-
"next": "^13.5.4",
11+
"@next/third-parties": "14.2.20",
12+
"next": "14.2.20",
1213
"nextra": "^2.13.2",
1314
"nextra-theme-docs": "^2.13.2",
1415
"react": "^18.2.0",
@@ -18,4 +19,4 @@
1819
"devDependencies": {
1920
"bun-types": "latest"
2021
}
21-
}
22+
}

docs/pages/_app.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {orbitron} from '../font';
2+
3+
export default function Nextra({Component, pageProps}) {
4+
return (
5+
<>
6+
<style jsx global>{`
7+
:root {
8+
--font-orbitron: ${orbitron.style.fontFamily};
9+
}
10+
`}</style>
11+
<Component {...pageProps} />
12+
</>
13+
);
14+
}

docs/theme.config.jsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import {GoogleAnalytics} from '@next/third-parties/google';
23

34
export default {
45
head: (
@@ -26,27 +27,12 @@ export default {
2627
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
2728
/>
2829
<meta name="twitter:image:alt" content="React Native Video" />
29-
<link rel="preconnect" href="https://fonts.googleapis.com" />
30-
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
31-
<link
32-
href="https://fonts.googleapis.com/css2?family=Orbitron:[email protected]&display=swap"
33-
rel="stylesheet"
34-
/>
3530
<link
3631
rel="icon"
3732
type="image/png"
3833
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
3934
/>
40-
<script
41-
async
42-
src="https://www.googletagmanager.com/gtag/js?id=G-PM2TQQQMDN"
43-
/>
44-
<script>
45-
{`window.dataLayer = window.dataLayer || [];
46-
function gtag(){dataLayer.push(arguments);}
47-
gtag('js', new Date());
48-
gtag('config', 'G-PM2TQQQMDN');`}
49-
</script>
35+
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
5036
</>
5137
),
5238
logo: (

0 commit comments

Comments
 (0)