Skip to content

Commit

Permalink
💄 style: Update og
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 24, 2024
1 parent 3b1f610 commit a4b9e07
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
43 changes: 31 additions & 12 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import { defineConfig } from 'dumi';
import { SiteThemeConfig } from 'dumi-theme-lobehub';
import { INavItem } from 'dumi/dist/client/theme-api/types';

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

const isProduction = process.env.NODE_ENV === 'production';
const isWin = process.platform === 'win32';

const themeConfig = {
const nav: INavItem[] = [
{ link: '/components/ai21', title: 'Icons' },
{ link: '/features/model-icon', title: 'Components' },
{ link: '/editor', title: 'SVG Editor' },
{ link: 'https://ui.lobehub.com', mode: 'override', title: 'UI' },
{ link: 'https://charts.lobehub.com', mode: 'override', title: 'Charts' },
{ link: '/changelog', title: 'Changelog' },
];

const themeConfig: SiteThemeConfig = {
actions: [
{
link: homepage,
Expand All @@ -18,29 +29,37 @@ const themeConfig = {
type: 'primary',
},
],
analytics: {
plausible: {
domain: 'icons.lobehub.com',
scriptBaseUrl: 'https://plausible.lobehub-inc.cn',
},
},
apiHeader: {
docUrl: `{github}/tree/master/src/{atomId}/index.md`,
match: ['/components'],
match: ['/components', '/features'],
pkg: name,
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`,
},
description: description,
footer: 'Made with 🤯 by LobeHub',
description,
giscus: {
category: 'Q&A',
categoryId: 'DIC_kwDOLLYRIs4Cin-i',
repo: 'lobehub/lobe-icons',
repoId: 'R_kgDOLLYRIg',
},
metadata: {
openGraph: {
image:
'https://repository-images.githubusercontent.com/750129442/59a8d16a-7ba1-4eda-b611-697d35cd04ab',
},
},
name: 'Icons',
nav: [
{ link: '/components/ai21', title: 'Icons' },
{ link: '/features/model-icon', title: 'Components' },
{ link: '/editor', title: 'SVG Editor' },
{ link: 'https://ui.lobehub.com', mode: 'override', title: 'UI' },
{ link: 'https://charts.lobehub.com', mode: 'override', title: 'Charts' },
{ link: '/changelog', title: 'Changelog' },
],
nav,
prefersColor: {
default: 'dark',
switch: false,
},
socialLinks: {
discord: 'https://discord.gg/AYFPHvv2jT',
github: homepage,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"consola": "^3.2.3",
"cross-env": "^7.0.3",
"dumi": "^2.4.14",
"dumi-theme-lobehub": "^1.8.2",
"dumi-theme-lobehub": "^1.9.2",
"eslint": "^8.57.1",
"father": "^4.5.1",
"glob": "^11.0.0",
Expand All @@ -114,7 +114,7 @@
"svgo-browser": "^1.3.8",
"swr": "^2.2.5",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"vitest": "~1.2.2"
},
"peerDependencies": {
Expand Down

0 comments on commit a4b9e07

Please sign in to comment.