Skip to content

Commit

Permalink
feat: add changelog (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leioy authored Jun 13, 2024
1 parent b34ac45 commit c1b0202
Show file tree
Hide file tree
Showing 6 changed files with 905 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/zh/guide/Changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: changelog of kubed library
order: 2
---

<ChangeLog />
<ChangelogRender />
7 changes: 7 additions & 0 deletions docs/lib/components/ChangelogRender.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';
import ChangeLog from '../../CHANGELOG.md';

const ChangelogRender = () => {
return <ChangeLog />;
};
export { ChangelogRender };
13 changes: 13 additions & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,17 @@ module.exports = withPlugins([withTM], {
},
];
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.md$/,
use: [
options.defaultLoaders.babel,
{
loader: '@mdx-js/loader',
},
],
});

return config;
},
});
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@kubed/components": "^0.2.8",
"@kubed/icons": "^0.0.20",
"@kubed/hooks": "^0.0.18",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^1.6.22",
"classnames": "^2.3.1",
"fs-extra": "^10.0.0",
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/[category]/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import CodeBox from '../../lib/components/CodeBox';
import PropsTable from '../../lib/components/PropsTable';
import IconList from '../../lib/components/IconList/IconList';
import { PaletteBlock } from '../../lib/components/Palette/PaletteBlock';
import { ChangelogRender } from '../../lib/components/ChangelogRender';

const Pre = ({ children }: React.PropsWithChildren<any>) => <>{children}</>;

Expand All @@ -26,6 +27,7 @@ const components = {
code: CodeBox,
IconList,
PaletteBlock,
ChangelogRender,
};

const MainContent = styled.div`
Expand Down
Loading

0 comments on commit c1b0202

Please sign in to comment.