diff --git a/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml b/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml
index c5c7775e5..433b27aff 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml
@@ -9,7 +9,7 @@ body:
tdesign-mobile-react 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:
在发布一个 Issue 前,请确保:
- - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/TDesignOteam/tdesign-mobile-react/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
+ - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-mobile-react/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。
- type: input
diff --git a/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml b/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml
index acd43c625..7fbf433a7 100644
--- a/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml
+++ b/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml
@@ -9,7 +9,7 @@ body:
tdesign-mobile-react 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:
在发布一个 Issue 前,请确保:
- - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/TDesignOteam/tdesign-mobile-react/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
+ - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-mobile-react/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。
- type: textarea
diff --git a/.husky/commit-msg b/.husky/commit-msg
index 4132fe04e..59a2376c8 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -1,4 +1,5 @@
#!/bin/sh
+[ -n "$CI" ] && exit 0
. "$(dirname "$0")/_/husky.sh"
npx commitlint -e $HUSKY_GIT_PARAMS
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 6d395b884..7c96b908c 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,5 @@
#!/bin/sh
+[ -n "$CI" ] && exit 0
. "$(dirname "$0")/_/husky.sh"
npm run lint:fix
diff --git a/package.json b/package.json
index ec60fd77a..424ae49e2 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/TDesignOteam/tdesign-mobile-react.git"
+ "url": "git+https://github.com/Tencent/tdesign-mobile-react.git"
},
"keywords": [
"tdesign",
@@ -71,7 +71,7 @@
"react-dom": ">=16.13.1"
},
"bugs": {
- "url": "https://github.com/TDesignOteam/tdesign-mobile-react/issues"
+ "url": "https://github.com/Tencent/tdesign-mobile-react/issues"
},
"homepage": "https://tdesign.tencent.com/mobile-react",
"devDependencies": {
diff --git a/site/doc/getting-started.md b/site/doc/getting-started.md
index 55775a909..0a4774c06 100644
--- a/site/doc/getting-started.md
+++ b/site/doc/getting-started.md
@@ -30,7 +30,7 @@ import 'tdesign-mobile-react/dist/tdesign.css'; // 如需样式请添加这行
由于原始样式基于 less 编写,需要自行处理 less 文件的编译(例如安装 less、less-loader)
-更多 less 变量定义 [查看这里](https://github.com/TDesignOteam/tdesign-common/blob/main/style/mobile/_variables.less)
+更多 less 变量定义 [查看这里](https://github.com/Tencent/tdesign-common/blob/main/style/mobile/_variables.less)
```javascript
import { Button } from 'tdesign-mobile-react/esm/';
@@ -80,7 +80,7 @@ module.exports = {
}
```
-npm package 中提供了多种构建产物,可以阅读 [这里](https://github.com/TDesignOteam/tdesign-common/blob/develop/develop-install.md) 了解不同目录下产物的差别。
+npm package 中提供了多种构建产物,可以阅读 [这里](https://github.com/Tencent/tdesign-common/blob/develop/develop-install.md) 了解不同目录下产物的差别。
## 浏览器兼容性
diff --git a/site/mobile/mobile.config.js b/site/mobile/mobile.config.js
index ce2a6fecf..4bb613b7a 100644
--- a/site/mobile/mobile.config.js
+++ b/site/mobile/mobile.config.js
@@ -8,7 +8,7 @@ export default {
{
title: 'Divider 分割符',
name: 'divider',
- component: () => import('tdesign-mobile-react/divider/_example/index.jsx'),
+ component: () => import('tdesign-mobile-react/divider/_example/index.tsx'),
},
{
title: 'Icon 图标',
diff --git a/site/plugin-tdoc/transforms.js b/site/plugin-tdoc/transforms.js
index a3c062602..1528f49a2 100644
--- a/site/plugin-tdoc/transforms.js
+++ b/site/plugin-tdoc/transforms.js
@@ -26,9 +26,14 @@ export default {
// 替换成对应 demo 文件
source = source.replace(/\{\{\s+(.+)\s+\}\}/g, (demoStr, demoFileName) => {
+ const tsDemoPath = path.resolve(resourceDir, `./_example/${demoFileName}.tsx`);
+ if (fs.existsSync(tsDemoPath)) {
+ return `\n::: demo _example/${demoFileName} ${name}\n:::\n`;
+ }
+
const demoPath = path.resolve(resourceDir, `./_example/${demoFileName}.jsx`);
if (!fs.existsSync(demoPath)) {
- console.log('\x1B[36m%s\x1B[0m', `${name} 组件需要实现 _example/${demoFileName}.jsx 示例!`);
+ console.log('\x1B[36m%s\x1B[0m', `${name} 组件需要实现 _example/${demoFileName}.tsx 示例!`);
return '\n
+ 用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。 +
+用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。
用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。