Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): bump next.js version & fix meta warnings #4327

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:wght@400..900&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
Loading