Browse Source

docs: create empty extra pages

pull/37896/head
PeachScript 2 years ago
parent
commit
96e7ad5e33
  1. 18
      .dumi/pages/404/index.tsx
  2. 1
      .dumi/pages/changelog-cn/index.tsx
  3. 18
      .dumi/pages/changelog/index.tsx
  4. 1
      .dumi/pages/components/overview-cn.tsx
  5. 18
      .dumi/pages/components/overview.tsx
  6. 1
      .dumi/pages/index-cn/index.tsx
  7. 2
      .dumi/pages/index/.gitkeep
  8. 18
      .dumi/pages/index/index/index.tsx

18
.dumi/pages/404/index.tsx

@ -0,0 +1,18 @@
import React, { type FC } from 'react';
const NotFoundPage: FC = () => {
// TODO: implement 404 page
// from: https://github.com/ant-design/ant-design/blob/0067b923b998eb8e68748a7c5b6f9414fb819052/site/theme/template/NotFound.tsx
return (
<section
style={{
borderBottom: '1px solid #eee',
padding: 22,
}}
>
404 page
</section>
);
};
export default NotFoundPage;

1
.dumi/pages/changelog-cn/index.tsx

@ -0,0 +1 @@
export { default } from '../changelog/index';

18
.dumi/pages/changelog/index.tsx

@ -0,0 +1,18 @@
import React, { type FC } from 'react';
const Changelog: FC = () => {
// TODO: implement changelog
// from: https://github.com/ant-design/ant-design/blob/2a754bd5cad7fd4892a065a8e044fb402f51f426/site/theme/template/Content/MainContent.jsx#L35
return (
<section
style={{
borderBottom: '1px solid #eee',
padding: 22,
}}
>
changelog page
</section>
);
};
export default Changelog;

1
.dumi/pages/components/overview-cn.tsx

@ -0,0 +1 @@
export { default } from './overview';

18
.dumi/pages/components/overview.tsx

@ -0,0 +1,18 @@
import React, { type FC } from 'react';
const Overview: FC = () => {
// TODO: implement overview
// from: https://github.com/ant-design/ant-design/blob/44d8e382bae77b82915effba051af58efd3d0551/site/theme/template/Content/ComponentOverview.jsx
return (
<section
style={{
borderBottom: '1px solid #eee',
padding: 22,
}}
>
overview page
</section>
);
};
export default Overview;

1
.dumi/pages/index-cn/index.tsx

@ -0,0 +1 @@
export { default } from '../index/index/index';

2
.dumi/pages/index/.gitkeep

@ -0,0 +1,2 @@
# workaround to keep /index route from umi conventional routes logic
# ref: https://github.com/umijs/umi/blob/cabb186057d801494340f533195b6b330e5ef4e0/packages/core/src/route/routesConvention.ts#L91

18
.dumi/pages/index/index/index.tsx

@ -0,0 +1,18 @@
import React, { type FC } from 'react';
const Homepage: FC = () => {
// TODO: implement homepage
// from: https://github.com/ant-design/ant-design/blob/2804cb843a1f6d8b46e44e13c2552f34c487b797/site/theme/template/Home/index.tsx
return (
<section
style={{
borderBottom: '1px solid #eee',
padding: 22,
}}
>
home page
</section>
);
};
export default Homepage;
Loading…
Cancel
Save