Skip to content

Commit

Permalink
✨ feat: Add sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 20, 2024
1 parent d2f3499 commit 18b8962
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'dumi';

import { homepage, name } from './package.json';
import { description, homepage, name } from './package.json';

const isProduction = process.env.NODE_ENV === 'production';
const isWin = process.platform === 'win32';
Expand All @@ -13,7 +13,7 @@ const themeConfig = {
text: 'Github',
},
{
link: '/components/baichuan',
link: '/components/ai21',
text: 'View all icons',
type: 'primary',
},
Expand All @@ -24,11 +24,11 @@ const themeConfig = {
pkg: name,
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`,
},
description: 'Lobe UI is an open-source UI component library for building AIGC web apps',
description: description,
footer: 'Made with 🤯 by LobeHub',
name: 'Icons',
nav: [
{ link: '/components/baichuan', title: 'Icons' },
{ link: '/components/ai21', title: 'Icons' },
{ link: '/changelog', title: 'Changelog' },
],
socialLinks: {
Expand All @@ -45,7 +45,13 @@ export default defineConfig({
'process.env': process.env,
},
extraBabelPlugins: ['babel-plugin-antd-style'],
favicons: ['https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon.ico'],
favicons: ['https://lobehub.com/favicon.ico'],
giscus: {
category: 'Q&A',
categoryId: 'DIC_kwDOLLYRIs4Cin-i',
repo: 'lobehub/lobe-icons',
repoId: 'R_kgDOLLYRIg',
},
locales: [{ id: 'en-US', name: 'English' }],
mfsu: isWin ? undefined : {},
npmClient: 'pnpm',
Expand All @@ -55,6 +61,9 @@ export default defineConfig({
entryFile: './src/index.ts',
}
: undefined,
sitemap: {
hostname: 'https://icons.lobehub.com',
},
styles: [
`html, body { background: transparent; }
Expand Down

0 comments on commit 18b8962

Please sign in to comment.