Skip to content

Commit 7af8efa

Browse files
committed
refactor(website): minor improvements
1 parent 97a1758 commit 7af8efa

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

website/pages/index.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Image } from "#/components/Image";
22
import { Warning } from "#/components/Callout";
3+
import { PUBLIC_URL } from "#/constants";
34

45
<p align="center">
5-
<Image src="/logo.svg" alt="logo" width="150" height="150" />
6+
<Image src={`${PUBLIC_URL}/logo.svg`} alt="logo" width="150" height="150" />
67
</p>
78

89
<h1 align="center" alt="title">

website/theme.config.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
21
import Image from "next/image";
32
import { useRouter } from "next/router";
43
import type { DocsThemeConfig } from "nextra-theme-docs";
54
import { match, P } from "ts-pattern";
65

76
import { PUBLIC_URL } from "#/constants";
87

9-
import logo from "./assets/logo.svg";
10-
118
export default {
129
docsRepositoryBase: "https://github.com/eslint-react/eslint-react/tree/main/website",
1310
sidebar: {
@@ -51,11 +48,12 @@ export default {
5148
sizes="16x16"
5249
href={`${PUBLIC_URL}/favicon-16x16.png`}
5350
/>
51+
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
5452
</>
5553
),
5654
logo: (
5755
<div className="w-24">
58-
<Image src={logo} width="48" height="48" alt="eslint-react" />
56+
<Image src={`${PUBLIC_URL}/logo.svg`} width="48" height="48" alt="eslint-react" />
5957
</div>
6058
),
6159
project: {

0 commit comments

Comments
 (0)