Skip to content

Commit

Permalink
fix(docs): bump next.js version & fix meta warnings (#4327)
Browse files Browse the repository at this point in the history
* chore(docs): bump `next` version

* docs: fix meta warnings
  • Loading branch information
moskalakamil authored Dec 10, 2024
1 parent 1033c9d commit 7b4bd9a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
Binary file modified docs/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/components/PlatformsList/PlatformsList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

.spanStyle {
font-family: 'Orbitron';
font-family: var(--font-orbitron);
font-weight: 800;
}
7 changes: 7 additions & 0 deletions docs/font.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {Orbitron} from 'next/font/google';

export const orbitron = Orbitron({
display: 'swap',
subsets: ['latin'],
weight: ['400', '900'],
});
2 changes: 1 addition & 1 deletion docs/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// 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.
5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "bun next build"
},
"dependencies": {
"next": "^13.5.4",
"@next/third-parties": "14.2.20",
"next": "14.2.20",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
"react": "^18.2.0",
Expand All @@ -18,4 +19,4 @@
"devDependencies": {
"bun-types": "latest"
}
}
}
14 changes: 14 additions & 0 deletions docs/pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -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} />
</>
);
}
18 changes: 2 additions & 16 deletions docs/theme.config.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import {GoogleAnalytics} from '@next/third-parties/google';

export default {
head: (
Expand Down Expand Up @@ -26,27 +27,12 @@ export default {
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
/>
<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:[email protected]&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
/>
<script
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>
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
</>
),
logo: (
Expand Down

0 comments on commit 7b4bd9a

Please sign in to comment.