Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed May 9, 2024
1 parent cc5cb6b commit 487dca0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
15 changes: 0 additions & 15 deletions .dumi/plugin.ts

This file was deleted.

10 changes: 8 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ import * as fs from 'fs-extra';

import rehypeAntd from './.dumi/rehypeAntd';
import remarkAntd from './.dumi/remarkAntd';
import { getBuildInfo } from './.dumi/_utils';
import { version } from './package.json';

let buildInfo: any;
(async () => {
buildInfo = await getBuildInfo();
})();

export default defineConfig({
plugins: ['dumi-plugin-color-chunk', './.dumi/plugin'],
plugins: ['dumi-plugin-color-chunk'],
conventionRoutes: {
// to avoid generate routes for .dumi/pages/index/components/xx
exclude: [new RegExp('index/components/')],
Expand Down Expand Up @@ -40,7 +46,7 @@ export default defineConfig({
},
extraRehypePlugins: [rehypeAntd],
extraRemarkPlugins: [remarkAntd],
metas: [{ name: 'theme-color', content: '#1677ff' }],
metas: [{ name: 'theme-color', content: '#1677ff' }, ...buildInfo],
analytics: {
ga_v2: 'UA-72788897-1',
},
Expand Down

0 comments on commit 487dca0

Please sign in to comment.