]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update outdated v2 links (#2921)
authoralexchexes <alexchexes@gmail.com>
Mon, 24 Feb 2025 22:14:39 +0000 (22:14 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 22:14:39 +0000 (23:14 +0100)
packages/docs/.vitepress/config/en.ts
packages/docs/.vitepress/config/zh.ts
packages/docs/cookbook/migration-0-0-7.md
packages/docs/cookbook/testing.md
packages/docs/zh/cookbook/migration-0-0-7.md
packages/docs/zh/cookbook/testing.md

index 51f27df43948d67e8c691562c9fc03d37cdfd8eb..ee30fc7f4f345ef59d49dc1dc20638c6f0b805af 100644 (file)
@@ -18,7 +18,7 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
 
   themeConfig: {
     editLink: {
-      pattern: 'https://github.com/vuejs/pinia/edit/v2/packages/docs/:path',
+      pattern: 'https://github.com/vuejs/pinia/edit/v3/packages/docs/:path',
       text: 'Suggest changes to this page',
     },
 
@@ -41,7 +41,7 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
           },
           {
             text: 'Changelog',
-            link: 'https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md',
+            link: 'https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md',
           },
           {
             text: 'Vue.js Certification',
index 8ed54f0597c1ba6e9baa8cc9d55a20e19f7da914..df28318f0ef873bdb824b3a4c8a15f6fcd4cc9b4 100644 (file)
@@ -18,7 +18,7 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
 
   themeConfig: {
     editLink: {
-      pattern: 'https://github.com/vuejs/pinia/edit/v2/packages/docs/:path',
+      pattern: 'https://github.com/vuejs/pinia/edit/v3/packages/docs/:path',
       text: '对本页提出修改建议',
     },
 
@@ -50,7 +50,7 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
           },
           {
             text: '更新日志',
-            link: 'https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md',
+            link: 'https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md',
           },
           {
             text: 'Vue.js 认证',
index 62a75bf577865eae58fd94f1a09139750e0f3088..6290819fe4101d106f080e6458414a8b9988f748 100644 (file)
@@ -3,7 +3,7 @@
 The versions after `0.0.7`: `0.1.0`, and `0.2.0`, came with a few big breaking changes. This guide helps you migrate whether you use Vue 2 or Vue 3. The whole changelog can be found in the repository:
 
 - [For Pinia <= 1 for Vue 2](https://github.com/vuejs/pinia/blob/v1/CHANGELOG.md)
-- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md)
+- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md)
 
 If you have questions or issues regarding the migration, feel free to [open a discussion](https://github.com/vuejs/pinia/discussions/categories/q-a) to ask for help.
 
index ec2501a99d96cf7f15476492dd266b23e1f61bfc..3eab75d9496f51f8bd118c310ece6c0e8a7d9879 100644 (file)
@@ -237,7 +237,7 @@ createTestingPinia({
 
 :::
 
-You can find more examples in [the tests of the testing package](https://github.com/vuejs/pinia/blob/v2/packages/testing/src/testing.spec.ts).
+You can find more examples in [the tests of the testing package](https://github.com/vuejs/pinia/blob/v3/packages/testing/src/testing.spec.ts).
 
 ### Mocking getters
 
index 2ba3daf5880c2ab46944384f2b32c825d13bbf0e..b5979d29871373efa6d84dd9f36c01d17efd596a 100644 (file)
@@ -3,7 +3,7 @@
 The versions after `0.0.7`: `0.1.0`, and `0.2.0`, came with a few big breaking changes. This guide helps you migrate whether you use Vue 2 or Vue 3. The whole changelog can be found in the repository:
 
 - [For Pinia <= 1 for Vue 2](https://github.com/vuejs/pinia/blob/v1/CHANGELOG.md)
-- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md)
+- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md)
 
 If you have questions or issues regarding the migration, feel free to [open a discussion](https://github.com/vuejs/pinia/discussions/categories/q-a) to ask for help.
 
index 745f9296b9fd7ee09a21119c172f013844c638b5..01d3d0cbde4a2dd788d7704d6ef4a2840e530f35 100644 (file)
@@ -230,7 +230,7 @@ createTestingPinia({
 })
 ```
 
-你可以在[测试包的测试源码](https://github.com/vuejs/pinia/blob/v2/packages/testing/src/testing.spec.ts)中找到更多的例子。
+你可以在[测试包的测试源码](https://github.com/vuejs/pinia/blob/v3/packages/testing/src/testing.spec.ts)中找到更多的例子。
 
 ### Mocking getters %{#mocking-getters}%