Browse Source

更新文档中的链接,将所有指向 demo-stdf 的链接替换为指向 0.x-demo-stdf,以确保一致性和准确性。

dufu1991 1 year ago
parent
commit
3df8946853

+ 3 - 3
.github/CONTRIBUTING.md

@@ -127,13 +127,13 @@ After the startup is successful, you can open `http://localhost:8888` in the bro
 
 You can modify the component source code under the `packages/stdf/components` directory and view the modification effect in real-time. Note that both VS Code and WebStorm support directly jumping to the component source code when calling the component.
 
-If you don't want to develop locally, you can choose to use StackBlitz to debug online. Just open [STDF Demo](https://stackblitz.com/github/any-tdf/demo-stdf?startScript=dev_en) to start online debugging.
+If you don't want to develop locally, you can choose to use StackBlitz to debug online. Just open [STDF Demo](https://stackblitz.com/github/any-tdf/0.x-demo-stdf?startScript=dev_en) to start online debugging.
 
 ## Submitting PR
 
 If you are submitting a Pull Request on GitHub for the first time, you can read the following two articles to learn:
 
-- [First Contributions](https://github.com/firstcontributions/first-contributions/blob/main/translations/README.zh-cn.md)
+- [First Contributions](https://github.com/firstcontributions/first-contributions/blob/0.x/translations/README.zh-cn.md)
 - [How to contribute code elegantly on GitHub](https://segmentfault.com/a/1190000000736629)
 
 ### Process
@@ -141,7 +141,7 @@ If you are submitting a Pull Request on GitHub for the first time, you can read
 - Please fork a copy of [STDF](https://github.com/any-tdf/stdf) to your own repository. If you have already forked, please synchronize the latest code from the main repository.
 - Clone your repository to your local machine.
 - Modify the component source code and verify it in the Demo.
-- 「Optional」Supplement the Chinese and English documentation for this modification, which is located in the `doc/components` directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, and other documents. For modifications to version, please add tags. Please refer to the [STDF Version tag](https://github.com/any-tdf/stdf/blob/main/doc/components/button/version.md?plain=1) for specific details.
+- 「Optional」Supplement the Chinese and English documentation for this modification, which is located in the `doc/components` directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, and other documents. For modifications to version, please add tags. Please refer to the [STDF Version tag](https://github.com/any-tdf/stdf/blob/0.x/doc/components/button/version.md?plain=1) for specific details.
 - Go to the root directory of the repository and execute `pnpm i` or `npm i` or `bun i` to install dependencies.
 - Use your editor to format the modified code or execute `pnpm run format` or `npm run format` in the command line to format the code.
 - Execute `pnpm run lint` or `npm run lint` to check the code formatting.

+ 4 - 4
README.md

@@ -8,7 +8,7 @@
 [![Public VS Code Extension Status](https://github.com/any-tdf/stdf/actions/workflows/publish-vscode.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/publish-vscode.yml)
 [![Sync Gitee Status](https://github.com/any-tdf/stdf/actions/workflows/sync-gitee.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/sync-gitee.yml)
 [![Releases Site](https://github.com/any-tdf/stdf/actions/workflows/releases-site.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/releases-site.yml)
-[![Releases Demo](https://github.com/any-tdf/demo-stdf/actions/workflows/releases-demo.yml/badge.svg)](https://github.com/any-tdf/demo-stdf/actions/workflows/releases-demo.yml)
+[![Releases Demo](https://github.com/any-tdf/0.x-demo-stdf/actions/workflows/releases-demo.yml/badge.svg)](https://github.com/any-tdf/0.x-demo-stdf/actions/workflows/releases-demo.yml)
 
   <picture>
     <source media="(prefers-color-scheme: dark)" srcset="https://stdf.design/assets/favicon_logo_dark/android-chrome-512x512.png">
@@ -26,7 +26,7 @@
 [![Visual Studio Marketplace Version (including pre-releases)](https://img.shields.io/visual-studio-marketplace/v/STDF.stdf-vscode-extension?logo=visualstudiocode&label=extension&style=for-the-badge&color=c7f292&logoColor=F0FCD6&labelColor=0E1901)](https://marketplace.visualstudio.com/items?itemName=STDF.stdf-vscode-extension)
 
   <h3>
-    <a href="https://github.com/any-tdf/stdf/blob/main/README_CN.md" target="_blank">简体中文</a>
+    <a href="https://github.com/any-tdf/stdf/blob/0.x/README_CN.md" target="_blank">简体中文</a>
     <span> • </span>
     <a href="https://stdf.design?lang=en_US" target="_blank">Website</a>
   </h3>
@@ -109,7 +109,7 @@ Please scan the QR code to access the mobile demo:
 
 # Quick Try
 
-You can quickly try STDF on StackBlitz's [STDF Demo](https://stackblitz.com/github/any-tdf/demo-stdf?startScript=dev_en).
+You can quickly try STDF on StackBlitz's [STDF Demo](https://stackblitz.com/github/any-tdf/0.x-demo-stdf?startScript=dev_en).
 
 # Feedback and Communication
 
@@ -134,7 +134,7 @@ We recommend using [GitHub Issues](https://github.com/any-tdf/stdf/issues) for d
 
 # License
 
-This project is licensed under the [MIT License](https://github.com/any-tdf/stdf/blob/main/LICENSE). Feel free to enjoy and contribute to this open-source project.
+This project is licensed under the [MIT License](https://github.com/any-tdf/stdf/blob/0.x/LICENSE). Feel free to enjoy and contribute to this open-source project.
 
 # Star History
 

+ 4 - 4
README_CN.md

@@ -8,7 +8,7 @@
 [![Public VS Code Extension Status](https://github.com/any-tdf/stdf/actions/workflows/publish-vscode.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/publish-vscode.yml)
 [![Sync Gitee Status](https://github.com/any-tdf/stdf/actions/workflows/sync-gitee.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/sync-gitee.yml)
 [![Releases Site](https://github.com/any-tdf/stdf/actions/workflows/releases-site.yml/badge.svg)](https://github.com/any-tdf/stdf/actions/workflows/releases-site.yml)
-[![Releases Demo](https://github.com/any-tdf/demo-stdf/actions/workflows/releases-demo.yml/badge.svg)](https://github.com/any-tdf/demo-stdf/actions/workflows/releases-demo.yml)
+[![Releases Demo](https://github.com/any-tdf/0.x-demo-stdf/actions/workflows/releases-demo.yml/badge.svg)](https://github.com/any-tdf/0.x-demo-stdf/actions/workflows/releases-demo.yml)
 
   <picture>
     <source media="(prefers-color-scheme: dark)" srcset="https://stdf.design/assets/favicon_logo_dark/android-chrome-512x512.png">
@@ -26,7 +26,7 @@
 [![Visual Studio Marketplace Version (including pre-releases)](https://img.shields.io/visual-studio-marketplace/v/STDF.stdf-vscode-extension?logo=visualstudiocode&label=extension&style=for-the-badge&color=c7f292&logoColor=F0FCD6&labelColor=0E1901)](https://marketplace.visualstudio.com/items?itemName=STDF.stdf-vscode-extension)
 
   <h3>
-    <a href="https://github.com/any-tdf/stdf/blob/main/README.md" target="_blank">English</a>
+    <a href="https://github.com/any-tdf/stdf/blob/0.x/README.md" target="_blank">English</a>
     <span> • </span>
     <a href="https://stdf.design?lang=zh_CN" target="_blank">网站</a>
   </h3>
@@ -111,7 +111,7 @@ bun create stdf
 
 # 快速尝试
 
-可以到 StackBlitz 的 [STDF Demo](https://stackblitz.com/github/any-tdf/demo-stdf) 快速尝试 STDF。
+可以到 StackBlitz 的 [STDF Demo](https://stackblitz.com/github/any-tdf/0.x-demo-stdf) 快速尝试 STDF。
 
 # 反馈与交流
 
@@ -136,7 +136,7 @@ bun create stdf
 
 # 开源协议
 
-本项目基于 [MIT](https://github.com/any-tdf/stdf/blob/main/LICENSE) 协议,请自由地享受和参与开源。
+本项目基于 [MIT](https://github.com/any-tdf/stdf/blob/0.x/LICENSE) 协议,请自由地享受和参与开源。
 
 # Star 历史
 

+ 3 - 3
doc/guide/contribution.md

@@ -119,13 +119,13 @@ yarn dev
 
 可对 `packages/stdf/components` 目录下组件源码进行修改并实时查看修改效果。注意,VS Code 与 WebStorm 都支持在调用组件时直接跳转到组件源码。
 
-如果不想本地开发,可以选择使用 StackBlitz 在线简单调试。直接打开 [STDF Demo](https://stackblitz.com/github/any-tdf/demo-stdf) 即可开始在线调试。
+如果不想本地开发,可以选择使用 StackBlitz 在线简单调试。直接打开 [STDF Demo](https://stackblitz.com/github/any-tdf/0.x-demo-stdf) 即可开始在线调试。
 
 ## 提交 PR
 
 如果你是第一次在 GitHub 上提 Pull Request ,可以阅读下面这两篇文章来学习:
 
-- [第一次参与开源](https://github.com/firstcontributions/first-contributions/blob/main/translations/README.zh-cn.md)
+- [第一次参与开源](https://github.com/firstcontributions/first-contributions/blob/0.x/translations/README.zh-cn.md)
 - [如何优雅地在 GitHub 上贡献代码](https://segmentfault.com/a/1190000000736629)
 
 ### 流程
@@ -133,7 +133,7 @@ yarn dev
 - 请先 fork 一份 [STDF](https://github.com/any-tdf/stdf) 代码到自己的仓库,如果已经 fork 过,请同步主仓库的最新代码。
 - 克隆你的仓库至本地。
 - 修改组件源码并在 Demo 中验证通过。
-- 「可选」补充此次修改的中英文档中,文档位于 `doc/components` 目录下。根据具体修改内容可能需要修改 api、FAQ、guide、version 等文档。对 version 的修改请增加 tag,具体参考 [STDF Version tag](https://github.com/any-tdf/stdf/blob/main/doc/components/button/version.md?plain=1)。
+- 「可选」补充此次修改的中英文档中,文档位于 `doc/components` 目录下。根据具体修改内容可能需要修改 api、FAQ、guide、version 等文档。对 version 的修改请增加 tag,具体参考 [STDF Version tag](https://github.com/any-tdf/stdf/blob/0.x/doc/components/button/version.md?plain=1)。
 - 到仓库根目录,执行 `pnpm i` 或 `npm i` 或 `bun i` 安装依赖。
 - 利用编辑器格式化你修改过的代码,或者执行 `pnpm run format` 或 `npm run format` 命令行格式化代码。
 - 执行 `pnpm run lint` 或 `npm run lint` 检查代码格式。

+ 3 - 3
doc/guide/contribution_en.md

@@ -117,13 +117,13 @@ After the startup is successful, you can open `http://localhost:8888` in the bro
 
 You can modify the component source code under the `packages/stdf/components` directory and view the modification effect in real-time. Note that both VS Code and WebStorm support directly jumping to the component source code when calling the component.
 
-If you don't want to develop locally, you can choose to use StackBlitz to debug online. Just open [STDF Demo](https://stackblitz.com/github/any-tdf/demo-stdf?startScript=dev_en) to start online debugging.
+If you don't want to develop locally, you can choose to use StackBlitz to debug online. Just open [STDF Demo](https://stackblitz.com/github/any-tdf/0.x-demo-stdf?startScript=dev_en) to start online debugging.
 
 ## Submitting PR
 
 If you are submitting a Pull Request on GitHub for the first time, you can read the following two articles to learn:
 
-- [First Contributions](https://github.com/firstcontributions/first-contributions/blob/main/translations/README.zh-cn.md)
+- [First Contributions](https://github.com/firstcontributions/first-contributions/blob/0.x/translations/README.zh-cn.md)
 - [How to contribute code elegantly on GitHub](https://segmentfault.com/a/1190000000736629)
 
 ### Process
@@ -131,7 +131,7 @@ If you are submitting a Pull Request on GitHub for the first time, you can read
 - Please fork a copy of [STDF](https://github.com/any-tdf/stdf) to your own repository. If you have already forked, please synchronize the latest code from the main repository.
 - Clone your repository to your local machine.
 - Modify the component source code and verify it in the Demo.
-- 「Optional」Supplement the Chinese and English documentation for this modification, which is located in the `doc/components` directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, and other documents. For modifications to version, please add tags. Please refer to the [STDF Version tag](https://github.com/any-tdf/stdf/blob/main/doc/components/button/version.md?plain=1) for specific details.
+- 「Optional」Supplement the Chinese and English documentation for this modification, which is located in the `doc/components` directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, and other documents. For modifications to version, please add tags. Please refer to the [STDF Version tag](https://github.com/any-tdf/stdf/blob/0.x/doc/components/button/version.md?plain=1) for specific details.
 - Go to the root directory of the repository and execute `pnpm i` or `npm i` or `bun i` to install dependencies.
 - Use your editor to format the modified code or execute `pnpm run format` or `npm run format` in the command line to format the code.
 - Execute `pnpm run lint` or `npm run lint` to check the code formatting.

+ 1 - 1
doc/guide/internation.md

@@ -91,7 +91,7 @@ STDF 组件使用 Svelte 的 [Context](https://svelte.dev/docs#run-time-svelte-s
 
 ## 增加语言包
 
-如果找不到你需要的语言包,欢迎你在 [中文语言包](https://github.com/any-tdf/stdf/blob/main/packages/stdf/lang/zh_CN.js) 或 [英文语言包](https://github.com/any-tdf/stdf/blob/main/packages/stdf/lang/en_US.js) 的基础上创建一个新的语言包,并发一个 Pull Request。[语言对照表](http://www.lingoes.net/en/translator/langcode.htm)
+如果找不到你需要的语言包,欢迎你在 [中文语言包](https://github.com/any-tdf/stdf/blob/0.x/packages/stdf/lang/zh_CN.js) 或 [英文语言包](https://github.com/any-tdf/stdf/blob/0.x/packages/stdf/lang/en_US.js) 的基础上创建一个新的语言包,并发一个 Pull Request。[语言对照表](http://www.lingoes.net/en/translator/langcode.htm)
 
 基本步骤如下:
 

+ 1 - 1
doc/guide/internation_en.md

@@ -91,7 +91,7 @@ Currently supported languages:
 
 ## Adding a Language Pack
 
-If you cannot find the language pack you need, you are welcome to create a new language pack based on the [Chinese language pack](https://github.com/any-tdf/stdf/blob/main/packages/stdf/lang/zh_CN.js) or [English language pack](https://github.com/any-tdf/stdf/blob/main/packages/stdf/lang/en_US.js) and submit it as a Pull Request. [Language code table](http://www.lingoes.net/en/translator/langcode.htm)
+If you cannot find the language pack you need, you are welcome to create a new language pack based on the [Chinese language pack](https://github.com/any-tdf/stdf/blob/0.x/packages/stdf/lang/zh_CN.js) or [English language pack](https://github.com/any-tdf/stdf/blob/0.x/packages/stdf/lang/en_US.js) and submit it as a Pull Request. [Language code table](http://www.lingoes.net/en/translator/langcode.htm)
 
 The basic steps are as follows:
 

+ 1 - 1
doc/guide/theme.md

@@ -236,7 +236,7 @@ switchTheme(stdfTheme);
 switchTheme(customTheme);
 ```
 
-详细使用方式可参考 [STDF Demo](https://github.com/any-tdf/demo-stdf)。
+详细使用方式可参考 [STDF Demo](https://github.com/any-tdf/0.x-demo-stdf)。
 
 ## 总结
 

+ 1 - 1
doc/guide/theme_en.md

@@ -236,7 +236,7 @@ switchTheme(stdfTheme);
 switchTheme(customTheme);
 ```
 
-For detailed usage, please refer to [STDF Demo](https://github.com/any-tdf/demo-stdf).
+For detailed usage, please refer to [STDF Demo](https://github.com/any-tdf/0.x-demo-stdf).
 
 ## Summary
 

+ 2 - 2
site/src/components/tab/Tab.svelte

@@ -59,7 +59,7 @@
 	let stackblitzValue = '';
 	const showStackblitzFunc = () => {
 		const nav = $querystring.split('&')[0].split('=')[1];
-		stackblitzValue = `https://stackblitz.com/github/any-tdf/demo-stdf?file=src%2Froutes%2F${
+		stackblitzValue = `https://stackblitz.com/github/any-tdf/0.x-demo-stdf?file=src%2Froutes%2F${
 			isZh ? 'zh_CN' : 'en_US'
 		}%2F${nav}%2F%2Bpage.svelte&startScript=${nav}${isZh ? '' : '_en'}`;
 		showStackblitz = true;
@@ -71,7 +71,7 @@
 		const nav = $querystring.split('&')[0].split('=')[1];
 		// 将nav首字母大写
 		const navFirst = nav.slice(0, 1).toUpperCase() + nav.slice(1);
-		codeValue = `https://github.com/any-tdf/stdf/blob/main/packages/stdf/components/${nav}/${navFirst}.svelte`;
+		codeValue = `https://github.com/any-tdf/stdf/blob/0.x/packages/stdf/components/${nav}/${navFirst}.svelte`;
 		showCode = true;
 	};
 </script>

+ 1 - 1
site/src/pages/Home.svelte

@@ -179,7 +179,7 @@
 				{ title: '关于', title_en: 'About', link: '#/guide/about', _blank: false },
 				{ title: '常见问题', title_en: 'FAQ', link: '#/guide/faq', _blank: false },
 				{ title: '更新日志', title_en: 'Changelog', link: '#/guide/changelog', _blank: false },
-				{ title: '开源许可', title_en: 'License', link: 'https://github.com/any-tdf/stdf/blob/main/LICENSE', _blank: true },
+				{ title: '开源许可', title_en: 'License', link: 'https://github.com/any-tdf/stdf/blob/0.x/LICENSE', _blank: true },
 			],
 		},
 		{