Skip to content

Commit 8a7c538

Browse files
feat: 导航栏显示 logo,浏览器标签页正确加载 favicon
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d750876 commit 8a7c538

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

docusaurus.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ const config = {
1010
organizationName: 'quickmsg',
1111
projectName: 'fcp-doc',
1212
onBrokenLinks: 'throw',
13+
head: [
14+
{
15+
tagName: 'link',
16+
attributes: { rel: 'icon', type: 'image/x-icon', href: '/fcp-doc/favicon.ico' },
17+
},
18+
],
1319
onBrokenMarkdownLinks: 'warn',
1420
i18n: {
1521
defaultLocale: 'zh-Hans',
@@ -36,6 +42,13 @@ const config = {
3642
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
3743
({
3844
navbar: {
45+
logo: {
46+
src: 'logo.svg',
47+
srcDark: 'logo.svg',
48+
width: 36,
49+
height: 36,
50+
alt: 'FCP',
51+
},
3952
title: 'FCP',
4053
items: [],
4154
},

static/logo.svg

Lines changed: 32 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)