From: alexchexes Date: Mon, 24 Feb 2025 22:14:39 +0000 (+0000) Subject: docs: update outdated v2 links (#2921) X-Git-Tag: @pinia/nuxt@0.11.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a02b7af3e15e00754515bb721fc45bd5f937d03;p=thirdparty%2Fvuejs%2Fpinia.git docs: update outdated v2 links (#2921) --- diff --git a/packages/docs/.vitepress/config/en.ts b/packages/docs/.vitepress/config/en.ts index 51f27df4..ee30fc7f 100644 --- a/packages/docs/.vitepress/config/en.ts +++ b/packages/docs/.vitepress/config/en.ts @@ -18,7 +18,7 @@ export const enConfig: LocaleSpecificConfig = { 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 = { }, { 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', diff --git a/packages/docs/.vitepress/config/zh.ts b/packages/docs/.vitepress/config/zh.ts index 8ed54f05..df28318f 100644 --- a/packages/docs/.vitepress/config/zh.ts +++ b/packages/docs/.vitepress/config/zh.ts @@ -18,7 +18,7 @@ export const zhConfig: LocaleSpecificConfig = { 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 = { }, { 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 认证', diff --git a/packages/docs/cookbook/migration-0-0-7.md b/packages/docs/cookbook/migration-0-0-7.md index 62a75bf5..6290819f 100644 --- a/packages/docs/cookbook/migration-0-0-7.md +++ b/packages/docs/cookbook/migration-0-0-7.md @@ -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. diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md index ec2501a9..3eab75d9 100644 --- a/packages/docs/cookbook/testing.md +++ b/packages/docs/cookbook/testing.md @@ -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 diff --git a/packages/docs/zh/cookbook/migration-0-0-7.md b/packages/docs/zh/cookbook/migration-0-0-7.md index 2ba3daf5..b5979d29 100644 --- a/packages/docs/zh/cookbook/migration-0-0-7.md +++ b/packages/docs/zh/cookbook/migration-0-0-7.md @@ -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. diff --git a/packages/docs/zh/cookbook/testing.md b/packages/docs/zh/cookbook/testing.md index 745f9296..01d3d0cb 100644 --- a/packages/docs/zh/cookbook/testing.md +++ b/packages/docs/zh/cookbook/testing.md @@ -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}%