From 53bb27feae28beacc3092e532094144fbcbd9048 Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Mon, 26 Feb 2024 17:32:57 +0800 Subject: [PATCH] fix: next links --- docs/optimized.mdx | 2 +- docusaurus.config.js | 2 +- i18n/en/docusaurus-plugin-content-docs/current/optimized.mdx | 2 +- .../en/docusaurus-plugin-content-docs/version-3.x/optimized.mdx | 2 +- .../en/docusaurus-plugin-content-docs/version-4.x/optimized.mdx | 2 +- packages/taro/types/compile/config/h5.d.ts | 2 +- packages/taro/types/compile/config/rn.d.ts | 2 +- versioned_docs/version-3.x/optimized.mdx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/optimized.mdx b/docs/optimized.mdx index 8d05501c3077..cf6d2ea38209 100644 --- a/docs/optimized.mdx +++ b/docs/optimized.mdx @@ -115,7 +115,7 @@ component.setData({ 对于不支持模板递归的小程序(微信、QQ、京东小程序),在 DOM 层级达到一定数量后,Taro 会使用原生自定义组件协助递归。 -简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/next/config-detail#minibaselevel) 修改 N。 +简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/config-detail#minibaselevel) 修改 N。 把 `baseLevel` 设置为 `8` 甚至 `4` 层,能非常有效地提升更新时的性能。但是设置是全局性的,会带来若干问题: diff --git a/docusaurus.config.js b/docusaurus.config.js index 765b04bc90df..353c228d57b4 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -55,7 +55,7 @@ const SCOPE_PLUGIN = { const siteConfig = { title: 'Taro 文档' /* title for your website */, - tagline: 'Taro 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。', + tagline: 'Taro 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/QQ 小程序/H5/React Native 等应用。', url: url[BASE_DOMAIN], /* your website url */ baseUrl: baseUrl[BASE_DOMAIN], /* base url for your project */ onBrokenLinks: 'warn', diff --git a/i18n/en/docusaurus-plugin-content-docs/current/optimized.mdx b/i18n/en/docusaurus-plugin-content-docs/current/optimized.mdx index d961893cfcb1..937faf448ba5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/optimized.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/optimized.mdx @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization. For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number. -The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N. +The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N. Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems. diff --git a/i18n/en/docusaurus-plugin-content-docs/version-3.x/optimized.mdx b/i18n/en/docusaurus-plugin-content-docs/version-3.x/optimized.mdx index d961893cfcb1..937faf448ba5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/version-3.x/optimized.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/version-3.x/optimized.mdx @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization. For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number. -The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N. +The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N. Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems. diff --git a/i18n/en/docusaurus-plugin-content-docs/version-4.x/optimized.mdx b/i18n/en/docusaurus-plugin-content-docs/version-4.x/optimized.mdx index d961893cfcb1..937faf448ba5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/version-4.x/optimized.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/version-4.x/optimized.mdx @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization. For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number. -The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N. +The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N. Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems. diff --git a/packages/taro/types/compile/config/h5.d.ts b/packages/taro/types/compile/config/h5.d.ts index bffca29af4f1..5aeaec609640 100644 --- a/packages/taro/types/compile/config/h5.d.ts +++ b/packages/taro/types/compile/config/h5.d.ts @@ -96,7 +96,7 @@ export interface IH5Config { /** 配置需要额外的经由 Taro 预设的 postcss 编译的模块 */ esnextModules?: string[] - /** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/next/h5#react-兼容性组件库)。(默认值:false) */ + /** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/h5#react-兼容性组件库)。(默认值:false) */ useHtmlComponents?: boolean /** 用于控制在 H5 端是否使用旧版本适配器,旧版本采用全局注册组件,懒加载组件相关依赖;新版本适配器会自动注册相关组件,不再需要引入 @tarojs/components/loader 中的全局 defineCustomElements 方法。(默认值:false) */ diff --git a/packages/taro/types/compile/config/rn.d.ts b/packages/taro/types/compile/config/rn.d.ts index 221a8660976c..a7a481e261fd 100644 --- a/packages/taro/types/compile/config/rn.d.ts +++ b/packages/taro/types/compile/config/rn.d.ts @@ -20,7 +20,7 @@ export interface IRNConfig { /** [less](https://lesscss.org/usage/#less-options) 相关配置 */ less?: IOption - /** [stylus](https://github.com/NervJS/taro/blob/next/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */ + /** [stylus](https://github.com/NervJS/taro/blob/main/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */ stylus?: IOption /** 配置 postcss 相关插件 */ diff --git a/versioned_docs/version-3.x/optimized.mdx b/versioned_docs/version-3.x/optimized.mdx index 8d05501c3077..cf6d2ea38209 100644 --- a/versioned_docs/version-3.x/optimized.mdx +++ b/versioned_docs/version-3.x/optimized.mdx @@ -115,7 +115,7 @@ component.setData({ 对于不支持模板递归的小程序(微信、QQ、京东小程序),在 DOM 层级达到一定数量后,Taro 会使用原生自定义组件协助递归。 -简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/next/config-detail#minibaselevel) 修改 N。 +简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/config-detail#minibaselevel) 修改 N。 把 `baseLevel` 设置为 `8` 甚至 `4` 层,能非常有效地提升更新时的性能。但是设置是全局性的,会带来若干问题: