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 afb9792 commit 40f1e03
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
28 changes: 21 additions & 7 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineConfig } from 'dumi';
import { SiteThemeConfig } from 'dumi-theme-lobehub';
import path from 'node:path';

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

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

const themeConfig = {
const themeConfig: SiteThemeConfig = {
actions: [
{
link: homepage,
Expand All @@ -18,21 +20,36 @@ const themeConfig = {
type: 'primary',
},
],
analytics: {
plausible: {
domain: 'tts.lobehub.com',
scriptBaseUrl: 'https://plausible.lobehub-inc.cn',
},
},
apiHeader: {
docUrl: `{github}/tree/master/src/{atomId}/index.md`,
match: ['/components'],
pkg: name,
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`,
},
description: description,
footer: 'Made with 🤯 by LobeHub',
description,
giscus: {
category: 'Q&A',
categoryId: 'DIC_kwDOKoaTlM4Cin-0',
repo: 'lobehub/lobe-tts',
repoId: 'R_kgDOKoaTlA',
},
metadata: {
openGraph: {
image:
'https://repository-images.githubusercontent.com/713462676/32967e56-249e-4593-bb18-b3ed34e69669',
},
},
name: 'TTS',
prefersColor: {
default: 'dark',
switch: false,
},
socialLinks: {
discord: 'https://discord.gg/AYFPHvv2jT',
github: homepage,
Expand All @@ -41,20 +58,17 @@ const themeConfig = {
};

export default defineConfig({
/* eslint-disable sort-keys-fix/sort-keys-fix */
alias: {
'@lobehub/tts/react': path.join(__dirname, './src/react'),
},
/* eslint-enable */
apiParser: isProduction ? {} : false,
base: '/',
define: {
'process.env': process.env,
},
favicons: ['https://lobehub.com/favicon.ico'],
locales: [{ id: 'en-US', name: 'English' }],
// mfsu: isWin ? undefined : {},
mfsu: false,
mfsu: isWin ? undefined : {},
npmClient: 'pnpm',
publicPath: '/',
resolve: {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@
"@commitlint/cli": "^19.6.0",
"@lobehub/i18n-cli": "^1.20.0",
"@lobehub/lint": "^1.24.4",
"@lobehub/ui": "^1.153.0",
"@lobehub/ui": "^1.153.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.6",
"@types/node": "^20.17.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^9.0.8",
"@vercel/node": "^3.2.26",
"commitlint": "^19.6.0",
"concurrently": "^9.0.1",
"concurrently": "^9.1.0",
"dumi": "^2.4.14",
"dumi-theme-lobehub": "^1.8.3",
"dumi-theme-lobehub": "^1.9.2",
"eslint": "^8.57.1",
"father": "^4.5.1",
"husky": "^9.1.7",
Expand All @@ -126,7 +126,7 @@
"semantic-release": "^21.1.2",
"stylelint": "^15.11.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"vercel": "^28.20.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 40f1e03

Please sign in to comment.