diff --git a/src/libraries/maintainers.ts b/src/libraries/maintainers.ts index 9c3a77cc..bbc03766 100644 --- a/src/libraries/maintainers.ts +++ b/src/libraries/maintainers.ts @@ -424,7 +424,7 @@ export const allMaintainers: Maintainer[] = [ social: { twitter: 'https://x.com/beaussan', bluesky: 'https://bsky.app/profile/beaussan.io', - website: 'https://beaussan.io/' + website: 'https://beaussan.io/', }, }, ] diff --git a/src/libraries/query.tsx b/src/libraries/query.tsx index c693172d..f8782d70 100644 --- a/src/libraries/query.tsx +++ b/src/libraries/query.tsx @@ -48,6 +48,14 @@ export const queryProject = { '/query/v5', 'from=reactQueryV3' ) + + handleRedirects( + queryCommunityLinks, + href, + '/query/latest', + '/query/latest', + 'from=communityLinks' + ) }, menu: [ { @@ -239,3 +247,38 @@ const reactQueryV3RemovedInV5List = [ {from: "plugins/createWebStoragePersister", to: "docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"}, {from: "plugins/createAsyncStoragePersister", to: "docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"}, ] + +/* +Community resources section to new location +*/ +// prettier-ignore +const queryCommunityLinks = [ + { + from: 'docs/framework/react/community/tkdodos-blog', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/react/community/community-projects', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/solid/community/tkdodos-blog', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/solid/community/community-projects', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/vue/community/tkdodos-blog', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/vue/community/community-projects', + to: 'docs/community-resources', + }, + { + from: 'docs/framework/react/videos', + to: 'docs/community-resources', + }, +]