Skip to content

Commit 82af30d

Browse files
windolepengjin
andauthored
chore: 修改release命令 (#51)
* chore: 更改release命令,不再维护内层README * fix: 修改网站logo Co-authored-by: pengjin <pengjin@vcredit.com>
1 parent ba07b05 commit 82af30d

File tree

7 files changed

+5
-102
lines changed

7 files changed

+5
-102
lines changed

packages/rc-cli/site/desktop/components/Header/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Header = (props) => {
5252
<div className="vant-doc-row">
5353
<div className="vant-doc-header__top">
5454
<a className="vant-doc-header__logo">
55-
<img alt="vant" src={config.logo} />
55+
<img alt="rc-ui-lib" src={config.logo} />
5656
<span>{config.title}</span>
5757
</a>
5858
{config.searchConfig && <SearchInput lang={lang} searchConfig={config.searchConfig} />}
5.49 KB
Loading

packages/rc-ui-lib/README.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/rc-ui-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint": "rc-cli lint",
1616
"build": "rc-cli build",
1717
"type": "tsc -p tsconfig.json",
18-
"release": "rc-cli release",
18+
"release": "cp ../../README.md ./ && rc-cli release && rm ./README.md",
1919
"changelog": "rc-cli changelog",
2020
"build:site": "rc-cli build-site",
2121
"release:site": "pnpm build:site && gh-pages -d site",

packages/rc-ui-lib/src/toast/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Toast({
7272

7373
Toast({
7474
message: '自定义图片',
75-
icon: 'https://img01.yzcdn.cn/vant/logo.png',
75+
icon: 'https://rancui.github.io/rc-ui-lib/rc-ui-lib.png',
7676
});
7777

7878
Toast.loading({

packages/rc-ui-lib/src/toast/demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default (): React.ReactNode => {
5959
onClick={() =>
6060
Toast({
6161
message: '自定义图片',
62-
icon: 'https://img01.yzcdn.cn/vant/logo.png',
62+
icon: 'https://rancui.github.io/rc-ui-lib/rc-ui-lib.png',
6363
})
6464
}
6565
/>

packages/rc-ui-lib/vant.config.mjs

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
'zh-CN': {
1616
title: 'RC-UI-LIB',
1717
description: '轻量、可靠的移动端组件库',
18-
logo: 'https://img01.yzcdn.cn/vant/logo.png',
18+
logo: '/rc-ui-lib.png',
1919
langLabel: '中文',
2020
links: [
2121
{
@@ -329,51 +329,6 @@ export default {
329329
},
330330
],
331331
},
332-
'en-US': {
333-
title: 'RC-UI-LIB',
334-
description: 'Mobile UI Components built on React',
335-
logo: 'https://img01.yzcdn.cn/vant/logo.png',
336-
langLabel: 'En',
337-
links: [
338-
{
339-
logo: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png',
340-
url: 'https://github.com/rancui/rc-ui-lib',
341-
},
342-
],
343-
searchConfig: {
344-
apiKey: '90067aecdaa2c85220e2783cd305caac',
345-
indexName: 'rc-ui-lib',
346-
placeholder: 'Search...',
347-
},
348-
nav: [
349-
{
350-
title: 'Essentials',
351-
items: [
352-
{
353-
path: 'home',
354-
title: 'Introduction',
355-
},
356-
{
357-
path: 'quickstart',
358-
title: 'Quickstart',
359-
},
360-
{
361-
path: 'theme',
362-
title: 'Custom Theme',
363-
},
364-
],
365-
},
366-
{
367-
title: 'Basic Components',
368-
items: [
369-
{
370-
path: 'button',
371-
title: 'Button',
372-
},
373-
],
374-
},
375-
],
376-
},
377332
},
378333
},
379334
};

0 commit comments

Comments
 (0)