Skip to content

Commit

Permalink
docs: 5.0.0 changelog (ant-design#38642)
Browse files Browse the repository at this point in the history
* docs: 5.0.0 changelog

* chore: bump version

* chore: english changelog

* chore: code clean

* docs: add missing break line

* docs: eng version pretter

* chore: update

* chore: clean

* chore: remove backtop doc

* chore: update changelog

* chore: code clean

* docs: update

* rm eng log

Co-authored-by: 二货机器人 <[email protected]>
  • Loading branch information
MadCcc and zombieJ authored Nov 18, 2022
1 parent f5ed8fb commit 73139eb
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 6,831 deletions.
1 change: 0 additions & 1 deletion .antd-tools.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ module.exports = {
finalize: finalizeDist,
},
bail: true,
tag: 'next',
};
14 changes: 7 additions & 7 deletions .dumi/theme/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const RoutesPlugin = (api: IApi) => {

api.registerTechStack(() => new AntdReactTechStack());

api.modifyRoutes(routes => {
api.modifyRoutes((routes) => {
// TODO: append extra routes, such as home, changelog, form-v3

const extraRoutesList: IRoute[] = [
Expand All @@ -64,24 +64,24 @@ const RoutesPlugin = (api: IApi) => {
},
];

extraRoutesList.forEach(itemRoute => {
extraRoutesList.forEach((itemRoute) => {
routes[itemRoute.path] = itemRoute;
});

return routes;
});

api.modifyExportHTMLFiles(files =>
api.modifyExportHTMLFiles((files) =>
files
// exclude dynamic route path, to avoid deploy failed by `:id` directory
.filter(f => !f.path.includes(':'))
.filter((f) => !f.path.includes(':'))
// FIXME: workaround to make emotion support react 18 pipeableStream
// ref: https://github.com/emotion-js/emotion/issues/2800#issuecomment-1221296308
.map(file => {
.map((file) => {
let styles = '';

// extract all emotion style tags from body
file.content = file.content.replace(/<style data-emotion[\s\S\n]+?<\/style>/g, s => {
file.content = file.content.replace(/<style data-emotion[\s\S\n]+?<\/style>/g, (s) => {
styles += s;

return '';
Expand All @@ -95,7 +95,7 @@ const RoutesPlugin = (api: IApi) => {
);

// add ssr css file to html
api.modifyConfig(memo => {
api.modifyConfig((memo) => {
memo.styles ??= [];
memo.styles.push(`/${ssrCssFileName}`);

Expand Down
3,451 changes: 76 additions & 3,375 deletions CHANGELOG.en-US.md

Large diffs are not rendered by default.

3,454 changes: 76 additions & 3,378 deletions CHANGELOG.zh-CN.md

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions components/back-top/index.en-US.md

This file was deleted.

35 changes: 0 additions & 35 deletions components/back-top/index.zh-CN.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd",
"version": "5.0.0-rc.3",
"version": "5.0.0",
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
"keywords": [
Expand Down

0 comments on commit 73139eb

Please sign in to comment.