mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
chore: update
This commit is contained in:
parent
cc5cb6b33d
commit
487dca0c56
@ -1,15 +0,0 @@
|
||||
import type { IApi } from 'dumi';
|
||||
import { getBuildInfo } from './_utils';
|
||||
|
||||
let buildInfo: any;
|
||||
(async () => {
|
||||
buildInfo = await getBuildInfo();
|
||||
})();
|
||||
|
||||
export default (api: IApi) => {
|
||||
api.describe({
|
||||
key: 'antd-website',
|
||||
});
|
||||
|
||||
api.addHTMLMetas(() => buildInfo);
|
||||
};
|
10
.dumirc.ts
10
.dumirc.ts
@ -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/')],
|
||||
@ -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',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user