From 2d47824ae76a1b14715332d336f8e767c674a334 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 12 Sep 2022 11:42:33 +0800 Subject: [PATCH] docs: update links for 3.x branch --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- README.md | 6 +++--- README.zh-CN.md | 6 +++--- packages/vant-cli/README.md | 8 ++++---- packages/vant-cli/README.zh-CN.md | 8 ++++---- packages/vant-cli/docs/commands.md | 2 +- packages/vant-cli/docs/commands.zh-CN.md | 2 +- packages/vant/docs/markdown/advanced-usage.en-US.md | 2 +- packages/vant/docs/markdown/advanced-usage.zh-CN.md | 2 +- packages/vant/docs/markdown/design.en-US.md | 4 ++-- packages/vant/docs/markdown/design.zh-CN.md | 4 ++-- packages/vant/docs/markdown/home.en-US.md | 8 ++++---- packages/vant/docs/markdown/home.zh-CN.md | 6 +++--- packages/vant/docs/markdown/theme.en-US.md | 2 +- packages/vant/docs/markdown/theme.zh-CN.md | 2 +- packages/vant/src/area/README.md | 2 +- packages/vant/src/area/README.zh-CN.md | 2 +- packages/vant/src/area/demo/area.ts | 2 +- packages/vant/src/locale/README.md | 2 +- packages/vant/src/locale/README.zh-CN.md | 2 +- 20 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 53880b8ac..b4aba3b9b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,6 @@ ### Before submitting a pull request, please make sure the following is done: -1. Read the [contributing guide](https://github.com/vant-ui/vant/blob/dev/.github/CONTRIBUTING.md). +1. Read the [contributing guide](https://github.com/vant-ui/vant/blob/3.x/.github/CONTRIBUTING.md). 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes (`npm test`). diff --git a/README.md b/README.md index 4dd0014bd..86d63dd27 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,9 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3) | --- | --- | | [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI | | [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos | -| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library | -| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons | -| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers | +| [vant-cli](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli) | Scaffold for UI library | +| [vant-icons](https://github.com/vant-ui/vant/tree/3.x/packages/vant-icons) | Vant icons | +| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator) | Using vant in desktop browsers | ## Community Ecosystem diff --git a/README.zh-CN.md b/README.zh-CN.md index 69ea63b52..7a3eccb44 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -98,9 +98,9 @@ Vant 3/4 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一 | --- | --- | | [vant-weapp](https://github.com/vant-ui/vant-weapp) | Vant 微信小程序版 | | [vant-demo](https://github.com/vant-ui/vant-demo) | Vant 官方示例合集 | -| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 | -| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant 图标库 | -| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 | +| [vant-cli](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli) | 开箱即用的组件库搭建工具 | +| [vant-icons](https://github.com/vant-ui/vant/tree/3.x/packages/vant-icons) | Vant 图标库 | +| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 | ## 社区生态 diff --git a/packages/vant-cli/README.md b/packages/vant-cli/README.md index efbc131b0..7536ff8c6 100644 --- a/packages/vant-cli/README.md +++ b/packages/vant-cli/README.md @@ -65,7 +65,7 @@ Please add the followed config to `package.json` file. ## More Details -- [cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/commands.md) -- [config](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/config.md) -- [directory structure](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.md) -- [CHANGELOG](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/changelog.md) +- [cli](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/commands.md) +- [config](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/config.md) +- [directory structure](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/directory.md) +- [CHANGELOG](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/changelog.md) diff --git a/packages/vant-cli/README.zh-CN.md b/packages/vant-cli/README.zh-CN.md index cb8f72123..fd373d0ac 100644 --- a/packages/vant-cli/README.zh-CN.md +++ b/packages/vant-cli/README.zh-CN.md @@ -62,7 +62,7 @@ pnpm add @vant/cli -D ## 详细文档 -- [命令](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/commands.zh-CN.md) -- [配置指南](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/config.zh-CN.md) -- [目录结构](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.zh-CN.md) -- [更新日志](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/changelog.md) +- [命令](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/commands.zh-CN.md) +- [配置指南](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/config.zh-CN.md) +- [目录结构](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/directory.zh-CN.md) +- [更新日志](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/changelog.md) diff --git a/packages/vant-cli/docs/commands.md b/packages/vant-cli/docs/commands.md index 06d2093ef..f3d0bc305 100644 --- a/packages/vant-cli/docs/commands.md +++ b/packages/vant-cli/docs/commands.md @@ -29,7 +29,7 @@ Start local dev server for browsering components and demo. Build Vue component library. -Files will be output to `es` and `lib` directory. More details [directory structure](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.md) +Files will be output to `es` and `lib` directory. More details [directory structure](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/directory.md) Please add the followed config to `package.json` when publish to npm. diff --git a/packages/vant-cli/docs/commands.zh-CN.md b/packages/vant-cli/docs/commands.zh-CN.md index 99bd1eef3..5802d377d 100644 --- a/packages/vant-cli/docs/commands.zh-CN.md +++ b/packages/vant-cli/docs/commands.zh-CN.md @@ -31,7 +31,7 @@ npx vant-cli dev 构建组件库。 -运行 build 命令会在 `es` 和 `lib` 目录下生成可用于生产环境的组件代码,详见 [目录结构](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.zh-CN.md)。 +运行 build 命令会在 `es` 和 `lib` 目录下生成可用于生产环境的组件代码,详见 [目录结构](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli/docs/directory.zh-CN.md)。 发布 npm 时,请将以下配置加入到 `package.json` 中,使 npm 包能被正确识别: diff --git a/packages/vant/docs/markdown/advanced-usage.en-US.md b/packages/vant/docs/markdown/advanced-usage.en-US.md index 9c41c3aba..d42bae85e 100644 --- a/packages/vant/docs/markdown/advanced-usage.en-US.md +++ b/packages/vant/docs/markdown/advanced-usage.en-US.md @@ -132,7 +132,7 @@ module.exports = { ### Adapt to PC Browsers -Vant is a mobile-first component library, if you want to use Vant in PC browsers, you can use the [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) module. This module will automatically convert the mouse events of the PC browser into the touch events of the mobile browser. +Vant is a mobile-first component library, if you want to use Vant in PC browsers, you can use the [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator) module. This module will automatically convert the mouse events of the PC browser into the touch events of the mobile browser. ```bash # Install diff --git a/packages/vant/docs/markdown/advanced-usage.zh-CN.md b/packages/vant/docs/markdown/advanced-usage.zh-CN.md index 4d8d04cf3..2592ed08f 100644 --- a/packages/vant/docs/markdown/advanced-usage.zh-CN.md +++ b/packages/vant/docs/markdown/advanced-usage.zh-CN.md @@ -197,7 +197,7 @@ module.exports = { Vant 是一个面向移动端的组件库,因此默认只适配了移动端设备,这意味着组件只监听了移动端的 `touch` 事件,没有监听桌面端的 `mouse` 事件。 -如果你需要在桌面端使用 Vant,可以引入我们提供的 [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator),这个库会在桌面端自动将 `mouse` 事件转换成对应的 `touch` 事件,使得组件能够在桌面端使用。 +如果你需要在桌面端使用 Vant,可以引入我们提供的 [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator),这个库会在桌面端自动将 `mouse` 事件转换成对应的 `touch` 事件,使得组件能够在桌面端使用。 ```bash # 安装模块 diff --git a/packages/vant/docs/markdown/design.en-US.md b/packages/vant/docs/markdown/design.en-US.md index 4e45baa64..765b2b204 100644 --- a/packages/vant/docs/markdown/design.en-US.md +++ b/packages/vant/docs/markdown/design.en-US.md @@ -22,7 +22,7 @@ Contains color specifications, font specifications, and component design specifi -Download +Download ### Icons (Sketch) @@ -30,7 +30,7 @@ Contains icon library resources. -Download +Download ### Axure diff --git a/packages/vant/docs/markdown/design.zh-CN.md b/packages/vant/docs/markdown/design.zh-CN.md index 592f8bdea..59dc2a6cd 100644 --- a/packages/vant/docs/markdown/design.zh-CN.md +++ b/packages/vant/docs/markdown/design.zh-CN.md @@ -22,7 +22,7 @@ -下载 +下载 ### 图标设计稿(Sketch) @@ -30,7 +30,7 @@ -下载 +下载 #### 在线资源 diff --git a/packages/vant/docs/markdown/home.en-US.md b/packages/vant/docs/markdown/home.en-US.md index f8c3c2b67..8b8b9dd9c 100644 --- a/packages/vant/docs/markdown/home.en-US.md +++ b/packages/vant/docs/markdown/home.en-US.md @@ -41,9 +41,9 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3) | --- | --- | | [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI | | [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos | -| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library | -| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons | -| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers | +| [vant-cli](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli) | Scaffold for UI library | +| [vant-icons](https://github.com/vant-ui/vant/tree/3.x/packages/vant-icons) | Vant icons | +| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator) | Using vant in desktop browsers | ### Community Ecosystem @@ -82,7 +82,7 @@ Thanks to the following friends for their contributions to Vant: ### Contribution Guide -Please make sure to read the [Contributing Guide](https://github.com/vant-ui/vant/blob/dev/.github/CONTRIBUTING.md) before making a pull request. +Please make sure to read the [Contributing Guide](https://github.com/vant-ui/vant/blob/3.x/.github/CONTRIBUTING.md) before making a pull request. ### LICENSE diff --git a/packages/vant/docs/markdown/home.zh-CN.md b/packages/vant/docs/markdown/home.zh-CN.md index 0193af634..e0655e36e 100644 --- a/packages/vant/docs/markdown/home.zh-CN.md +++ b/packages/vant/docs/markdown/home.zh-CN.md @@ -53,9 +53,9 @@ Vant 3/4 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一 | --- | --- | | [vant-weapp](https://github.com/vant-ui/vant-weapp) | Vant 微信小程序版 | | [vant-demo](https://github.com/vant-ui/vant-demo) | Vant 官方示例合集 | -| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 | -| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant 图标库 | -| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 | +| [vant-cli](https://github.com/vant-ui/vant/tree/3.x/packages/vant-cli) | 开箱即用的组件库搭建工具 | +| [vant-icons](https://github.com/vant-ui/vant/tree/3.x/packages/vant-icons) | Vant 图标库 | +| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/3.x/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 | ### 社区生态 diff --git a/packages/vant/docs/markdown/theme.en-US.md b/packages/vant/docs/markdown/theme.en-US.md index efd357e40..c2e26ca0e 100644 --- a/packages/vant/docs/markdown/theme.en-US.md +++ b/packages/vant/docs/markdown/theme.en-US.md @@ -10,7 +10,7 @@ Vant use [Less](http://lesscss.org/) as css preprocessor,you can override the ### Less variables -There are some [basic variables](<(https://github.com/vant-ui/vant/blob/dev/packages/vant/src/style/var.less)>) below, for component less variables, please refer to the documentation of each component, or view the `var.less` file in the component source directory. +There are some [basic variables](<(https://github.com/vant-ui/vant/blob/3.x/packages/vant/src/style/var.less)>) below, for component less variables, please refer to the documentation of each component, or view the `var.less` file in the component source directory. ```less // Color Palette diff --git a/packages/vant/docs/markdown/theme.zh-CN.md b/packages/vant/docs/markdown/theme.zh-CN.md index 6cd4a77ab..589d6dbdd 100644 --- a/packages/vant/docs/markdown/theme.zh-CN.md +++ b/packages/vant/docs/markdown/theme.zh-CN.md @@ -16,7 +16,7 @@ Vant 提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用 Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置了一些样式变量,通过替换样式变量即可定制你自己需要的主题。 -下面是所有的[基础样式变量](https://github.com/vant-ui/vant/blob/dev/packages/vant/src/style/var.less),组件的样式变量请参考各个组件的文档,或查看组件源码目录下的 `var.less` 文件。 +下面是所有的[基础样式变量](https://github.com/vant-ui/vant/blob/3.x/packages/vant/src/style/var.less),组件的样式变量请参考各个组件的文档,或查看组件源码目录下的 `var.less` 文件。 ```less // Color Palette diff --git a/packages/vant/src/area/README.md b/packages/vant/src/area/README.md index b669b1661..172685645 100644 --- a/packages/vant/src/area/README.md +++ b/packages/vant/src/area/README.md @@ -52,7 +52,7 @@ export default { ### @vant/area-data -Vant officially provides a default China area data, which can be imported through [@vant/area-data](https://github.com/vant-ui/vant/tree/dev/packages/vant-area-data): +Vant officially provides a default China area data, which can be imported through [@vant/area-data](https://github.com/vant-ui/vant/tree/3.x/packages/vant-area-data): ```bash # with npm diff --git a/packages/vant/src/area/README.zh-CN.md b/packages/vant/src/area/README.zh-CN.md index d4a72e194..feb49d41c 100644 --- a/packages/vant/src/area/README.zh-CN.md +++ b/packages/vant/src/area/README.zh-CN.md @@ -54,7 +54,7 @@ const areaList = { ### @vant/area-data -Vant 官方提供了一份默认的中国省市区数据,可以通过 [@vant/area-data](https://github.com/vant-ui/vant/tree/dev/packages/vant-area-data) 引入: +Vant 官方提供了一份默认的中国省市区数据,可以通过 [@vant/area-data](https://github.com/vant-ui/vant/tree/3.x/packages/vant-area-data) 引入: ```bash # 通过 npm diff --git a/packages/vant/src/area/demo/area.ts b/packages/vant/src/area/demo/area.ts index ebc1f41e5..828166bbe 100644 --- a/packages/vant/src/area/demo/area.ts +++ b/packages/vant/src/area/demo/area.ts @@ -1 +1 @@ -// 已迁移至 https://github.com/vant-ui/vant/tree/dev/packages/vant-area-data +// 已迁移至 https://github.com/vant-ui/vant/tree/3.x/packages/vant-area-data diff --git a/packages/vant/src/locale/README.md b/packages/vant/src/locale/README.md index d697607f8..86276f61f 100644 --- a/packages/vant/src/locale/README.md +++ b/packages/vant/src/locale/README.md @@ -72,7 +72,7 @@ Current supported languages: | Traditional Chinese (HK) | zh-HK | - | | Traditional Chinese (TW) | zh-TW | - | -> View all language configs [Here](https://github.com/vant-ui/vant/tree/dev/packages/vant/src/locale/lang). +> View all language configs [Here](https://github.com/vant-ui/vant/tree/3.x/packages/vant/src/locale/lang). ### Add new language diff --git a/packages/vant/src/locale/README.zh-CN.md b/packages/vant/src/locale/README.zh-CN.md index c5482873e..f3704708c 100644 --- a/packages/vant/src/locale/README.zh-CN.md +++ b/packages/vant/src/locale/README.zh-CN.md @@ -73,7 +73,7 @@ Locale.add(messages); | 繁體中文(港) | zh-HK | - | | 繁體中文(台) | zh-TW | - | -> 在 [这里](https://github.com/vant-ui/vant/tree/dev/packages/vant/src/locale/lang) 查看所有的语言包源文件。 +> 在 [这里](https://github.com/vant-ui/vant/tree/3.x/packages/vant/src/locale/lang) 查看所有的语言包源文件。 ## 常见问题