Skip to content

Commit 18b8962

Browse files
✨ feat: Add sitemap
1 parent d2f3499 commit 18b8962

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.dumirc.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'dumi';
22

3-
import { homepage, name } from './package.json';
3+
import { description, homepage, name } from './package.json';
44

55
const isProduction = process.env.NODE_ENV === 'production';
66
const isWin = process.platform === 'win32';
@@ -13,7 +13,7 @@ const themeConfig = {
1313
text: 'Github',
1414
},
1515
{
16-
link: '/components/baichuan',
16+
link: '/components/ai21',
1717
text: 'View all icons',
1818
type: 'primary',
1919
},
@@ -24,11 +24,11 @@ const themeConfig = {
2424
pkg: name,
2525
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`,
2626
},
27-
description: 'Lobe UI is an open-source UI component library for building AIGC web apps',
27+
description: description,
2828
footer: 'Made with 🤯 by LobeHub',
2929
name: 'Icons',
3030
nav: [
31-
{ link: '/components/baichuan', title: 'Icons' },
31+
{ link: '/components/ai21', title: 'Icons' },
3232
{ link: '/changelog', title: 'Changelog' },
3333
],
3434
socialLinks: {
@@ -45,7 +45,13 @@ export default defineConfig({
4545
'process.env': process.env,
4646
},
4747
extraBabelPlugins: ['babel-plugin-antd-style'],
48-
favicons: ['https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon.ico'],
48+
favicons: ['https://lobehub.com/favicon.ico'],
49+
giscus: {
50+
category: 'Q&A',
51+
categoryId: 'DIC_kwDOLLYRIs4Cin-i',
52+
repo: 'lobehub/lobe-icons',
53+
repoId: 'R_kgDOLLYRIg',
54+
},
4955
locales: [{ id: 'en-US', name: 'English' }],
5056
mfsu: isWin ? undefined : {},
5157
npmClient: 'pnpm',
@@ -55,6 +61,9 @@ export default defineConfig({
5561
entryFile: './src/index.ts',
5662
}
5763
: undefined,
64+
sitemap: {
65+
hostname: 'https://icons.lobehub.com',
66+
},
5867
styles: [
5968
`html, body { background: transparent; }
6069

0 commit comments

Comments
 (0)