Skip to content

Commit 6f28d1d

Browse files
committed
docs: use favicon assets for navbar/og instead of full-size logo
1 parent 592cb22 commit 6f28d1d

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm typecheck && pnpm audit:comments && pnpm audit:any && pnpm exec vitest run --changed
1+
pnpm typecheck && pnpm audit:comments && pnpm audit:any && pnpm exec vitest run --changed --passWithNoTests

docs/app/layout.jsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import 'nextra-theme-docs/style.css'
66
const GA_ID = 'G-B76YYS1K85'
77
const basePath = process.env.DOCS_BASE_PATH ?? '/zaileys'
88
const SITE_URL = process.env.DOCS_SITE_URL ?? 'https://zeative.github.io/zaileys'
9-
const logoSrc = `${basePath}/zaileys-clean.png`
9+
const logoSrc = `${basePath}/favicon/favicon-96x96.png`
1010
const ogImage = 'https://repository-images.githubusercontent.com/982777390/83fdf9a5-8357-4a53-ade6-883355d77051'
11-
const logoUrl = `${SITE_URL}/zaileys-clean.png`
11+
const logoUrl = `${SITE_URL}/favicon/web-app-manifest-512x512.png`
1212

1313
const DESCRIPTION =
1414
'Zaileys is a type-safe, batteries-included WhatsApp bot framework for Node.js and TypeScript built on Baileys — send messages, interactive buttons, AIRich markdown, run commands, broadcast, and persist sessions with pluggable storage.'
@@ -39,7 +39,14 @@ export const metadata = {
3939
'whatsapp framework',
4040
'multi-device whatsapp',
4141
],
42-
icons: { icon: logoSrc, apple: logoSrc, shortcut: logoSrc },
42+
icons: {
43+
icon: [
44+
{ url: `${basePath}/favicon/favicon.ico`, sizes: '48x48' },
45+
{ url: `${basePath}/favicon/favicon-96x96.png`, sizes: '96x96', type: 'image/png' },
46+
],
47+
apple: `${basePath}/favicon/apple-touch-icon.png`,
48+
shortcut: `${basePath}/favicon/favicon.ico`,
49+
},
4350
manifest: `${basePath}/manifest.webmanifest`,
4451
alternates: { canonical: `${SITE_URL}/` },
4552
openGraph: {

docs/app/manifest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ export default function manifest(): MetadataRoute.Manifest {
1616
background_color: '#0a0a0a',
1717
theme_color: '#0a0a0a',
1818
icons: [
19-
{ src: `${basePath}/zaileys-clean.png`, sizes: '512x512', type: 'image/png', purpose: 'any' },
20-
{ src: `${basePath}/zaileys-clean.png`, sizes: '512x512', type: 'image/png', purpose: 'maskable' },
19+
{ src: `${basePath}/favicon/web-app-manifest-192x192.png`, sizes: '192x192', type: 'image/png', purpose: 'any' },
20+
{ src: `${basePath}/favicon/web-app-manifest-512x512.png`, sizes: '512x512', type: 'image/png', purpose: 'any' },
21+
{ src: `${basePath}/favicon/web-app-manifest-512x512.png`, sizes: '512x512', type: 'image/png', purpose: 'maskable' },
2122
],
2223
}
2324
}

0 commit comments

Comments
 (0)