Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add new document site URL #5810

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
</p>

<p align="center">
🔥 <a href="https://vant-ui.github.io/vant-weapp">文档网站</a>
🔥 <a href="https://vant.pro/vant-weapp/">文档网站(国内)</a>
&nbsp;
🔥 <a href="https://vant-ui.github.io/vant-weapp/">文档网站(GitHub)</a>
&nbsp;
🚀 <a href="https://github.com/vant-ui/vant" target="_blank">Vue 版</a>
</p>
Expand All @@ -22,7 +24,7 @@

Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。

目前 Vant 官方提供了 [Vue 2 版本](https://vant-ui.github.io/vant/v2)、[Vue 3 版本](https://vant-ui.github.io/vant)和[微信小程序版本](http://vant-ui.github.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。
目前 Vant 官方提供了 [Vue 2 版本](https://vant-ui.github.io/vant/v2/)、[Vue 3 版本](https://vant-ui.github.io/vant/)和[微信小程序版本](http://vant-ui.github.io/vant-weapp/),并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。

## 预览

Expand Down Expand Up @@ -97,6 +99,8 @@ Vant Weapp 最低支持到小程序基础库 2.6.5 版本。

## 链接

- [文档网站(GitHub)](https://vant-ui.github.io/vant-weapp/)
- [文档网站(国内)](https://vant.pro/vant-weapp/)
- [意见反馈](https://github.com/youzan/vant-weapp/issues)
- [设计资源](https://vant-ui.github.io/vant/#/zh-CN/design)
- [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog)
Expand Down
2 changes: 1 addition & 1 deletion docs/markdown/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ Rate [\#3105](https://github.com/youzan/vant-weapp/pull/3105)

微信小程序自定义组件的组件模型相当于一个简化版的 [Shadow DOM](https://developers.google.com/web/fundamentals/web-components/shadowdom?hl=zh-CN),幸运的是,小程序也支持了 [CSS 自定义属性](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties) 的特性。最终,我们基于 CSS 自定义属性设计了样式定制的方案,开发者使用灵活、方便,组件维护也更简单。

从 1.0 版本开始,Vant Weapp 中的所有组件都支持通过 [CSS 组定义属性](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties) 进行样式定制,具体使用姿势可查看[相关文档](https://vant-ui.github.io/vant-weapp/#/theme)
从 1.0 版本开始,Vant Weapp 中的所有组件都支持通过 [CSS 组定义属性](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties) 进行样式定制,具体使用姿势可查看[相关文档](/vant-weapp/#/theme)

![定制主题](https://img.yzcdn.cn/public_files/2019/06/11/9a066c1a212264c7ae56065e1f13d317.png)

Expand Down
6 changes: 3 additions & 3 deletions docs/markdown/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。

目前 Vant 官方提供了 [Vue 2 版本](https://vant-ui.github.io/vant/v2)、[Vue 3 版本](https://vant-ui.github.io/vant)和[微信小程序版本](http://vant-ui.github.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。
目前 Vant 官方提供了 [Vue 2 版本](/vant/v2/)、[Vue 3 版本](/vant/)和[微信小程序版本](/vant-weapp/),并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。

### 预览

Expand All @@ -27,8 +27,8 @@ Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。
### 链接

- [意见反馈](https://github.com/youzan/vant-weapp/issues)
- [设计资源](https://vant-ui.github.io/vant/#/zh-CN/design)
- [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog)
- [设计资源](/vant/#/zh-CN/design)
- [更新日志](/vant-weapp/#/changelog)
- [官方示例](https://github.com/vant-ui/vant-demo)

## 贡献
Expand Down
7 changes: 7 additions & 0 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
server: {
proxy: {
'/vant/v2': 'https://vant-ui.github.io',
},
},
};
4 changes: 2 additions & 2 deletions vant.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
description: '轻量、可靠的小程序 UI 组件库',
logo: 'https://img.yzcdn.cn/vant/logo.png',
simulator: {
url: 'https://vant-ui.github.io/vant/v2/mobile.html?weapp=1',
url: '/vant/v2/mobile.html?weapp=1',
routeMapper: (path) => {
const map = {
'/common': '/style',
Expand All @@ -25,7 +25,7 @@ export default {
links: [
{
logo: 'https://img.yzcdn.cn/vant/vant-o.svg',
url: 'https://vant-ui.github.io/vant/',
url: '/vant/',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
Expand Down
Loading