Skip to content

Commit

Permalink
fix: improve footer copyright (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung committed May 24, 2023
1 parent 9b5d40e commit f0fd407
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .dumi/theme/slots/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react';
import { Divider } from 'antd';
import { useSiteData } from 'dumi';
import './index.scss';

export default function Footer() {
const { themeConfig } = useSiteData();
return (
<div className="dtc-footer">
<div className="dtc-footer-links">
Expand Down Expand Up @@ -55,7 +57,7 @@ export default function Footer() {
<div className="dtc-footer-divider">
<Divider />
</div>
<div className="dtc-footer-copyright">dt-react-component 3.0.5 · Made by dtstack</div>
<div className="dtc-footer-copyright">{themeConfig.footer}</div>
</div>
);
}
2 changes: 2 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineConfig } from 'dumi';
import pkg from './package.json';

export default defineConfig({
outputPath: 'docs-dist',
themeConfig: {
name: 'dt-react-component',
footer: `dt-react-component ${pkg.version} · Made by dtstack`,
},
base: '/dt-react-component/',
publicPath: '/dt-react-component/',
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"module": "esnext",
"target": "es6",
"moduleResolution": "Node",
"resolveJsonModule": true,
"keyofStringsOnly": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit f0fd407

Please sign in to comment.