Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaslins committed Dec 15, 2023
1 parent 1713dd3 commit 23b3b98
Show file tree
Hide file tree
Showing 6 changed files with 1,892 additions and 1,850 deletions.
9 changes: 5 additions & 4 deletions site/components/docs-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ const TableItem: React.FC<{
href: string;
children?: React.ReactNode;
}> = ({ children, href }) => (
<Link href={href}>
<a className="rounded px-3 py-1.5 transition-colors duration-200 relative block hover:text-toast-500 text-toast-700">
{children}
</a>
<Link
className="rounded px-3 py-1.5 transition-colors duration-200 relative block hover:text-toast-500 text-toast-700"
href={href}
>
{children}
</Link>
);

Expand Down
4 changes: 2 additions & 2 deletions site/components/sections/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function Footer({ noBadge }: { noBadge?: boolean }) {
>
GitHub
</a>
<Link href="/docs">
<a className="underline">Docs</a>
<Link href="/docs" className="underline">
Docs
</Link>
<a className="underline" href="https://twitter.com/timolins">
Twitter
Expand Down
14 changes: 10 additions & 4 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"@next/mdx": "^12.2.1",
"@svgr/webpack": "^6.2.1",
"@types/prismjs": "^1.26.0",
"@vercel/analytics": "^0.1.5",
"@vercel/analytics": "^1.1.1",
"@vercel/speed-insights": "^1.0.2",
"clsx": "^1.1.1",
"next": "^12.2.1",
"next": "14.0.4",
"next-seo": "^5.4.0",
"postcss": "^8.4.14",
"prism-react-renderer": "^1.3.5",
Expand All @@ -25,12 +26,17 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.3",
"@types/node": "^18.0.0",
"@types/react": "^18.0.14",
"@types/react-dom": "^18.0.5",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"autoprefixer": "^10.4.7",
"next-compose-plugins": "^2.2.1",
"remark-gfm": "^3.0.1",
"tailwindcss": "^3.1.5",
"typescript": "^4.7.4"
},
"resolutions": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next": "14.0.4"
}
}
9 changes: 3 additions & 6 deletions site/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ import * as React from 'react';
import Link from 'next/link';
import Head from 'next/head';
import { Analytics } from '@vercel/analytics/react';

import { SpeedInsights } from '@vercel/speed-insights/next';

import { MDXProvider } from '@mdx-js/react';
import { Code } from '../components/code';

const components = {
a: (props) => (
<Link href={props.href}>
<a {...props} />
</Link>
),
a: (props) => <Link href={props.href} {...props} />,
code: (props) =>
props.className ? (
<Code className={props.className} snippet={props.children} />
Expand All @@ -38,6 +34,7 @@ function MyApp({ Component, pageProps }) {
<MDXProvider components={components}>
<Component {...pageProps} />
<Analytics />
<SpeedInsights />
</MDXProvider>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions site/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export default function Home() {
</a>
</div>
<div className="text-toast-600 my-2">
<Link href="/docs">
<a className="underline">Documentation</a>
<Link href="/docs" className="underline">
Documentation
</Link>
{' 路 '}
<span>v{version}</span>
Expand Down
Loading

0 comments on commit 23b3b98

Please sign in to comment.