Skip to content

Commit

Permalink
feat: ✨ 修改文档库主题
Browse files Browse the repository at this point in the history
  • Loading branch information
niyg-mw committed Dec 8, 2023
1 parent 572602b commit 8e0e3af
Show file tree
Hide file tree
Showing 3 changed files with 560 additions and 1,297 deletions.
27 changes: 17 additions & 10 deletions packages/gbeata/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ export default defineConfig({
outputPath: 'docs-dist',
themeConfig: {
name: 'gbeata',
mfsu: false,
// 单语言时配置数组即可
// features: [{ title: '开箱即用'}, { description: '接入简单,安装即使用,全面融入 Ant Design 5.0 风格。'}]
// 多语言时配置对象,key 为语言名
features: {
'zh-CN': [
{ title: '开箱即用' },
{ description: '接入简单,安装即使用,全面融入 Ant Design 5.0 风格。' },
],
'en-US': [
{ title: 'Simple Use' },
{
description:
'Simple access, installation and use, fully integrated into Ant Design 5.0 style.',
},
],
},
},
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
],
],
});
3 changes: 3 additions & 0 deletions packages/gbeata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@
],
"gitHooks": {
"pre-commit": "lint-staged"
},
"dependencies": {
"dumi-theme-antd-style": "^0.29.7"
}
}
Loading

0 comments on commit 8e0e3af

Please sign in to comment.