Skip to content

Commit

Permalink
fix: edit redirects to main branch (#556)
Browse files Browse the repository at this point in the history
# Docs updates should not be submitted in this repository

Our doc site content is being automatically updated from [Wing](https://github.com/winglang/wing) repository docs folder.

Please submit any changes to the docs as a PR [here](https://github.com/winglang/wing/pulls)
  • Loading branch information
ekeren authored Aug 3, 2023
1 parent 0469c21 commit 1452e25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const config = {
id: 'contributing',
path: 'contributing',
routeBasePath: 'contributing',
editUrl: (params) => `${winglangOrgUrl}/wing/tree/dev/docs/contributing/${params.docPath}`,
editUrl: (params) => `${winglangOrgUrl}/wing/tree/main/docs/contributing/${params.docPath}`,
breadcrumbs: true,
includeCurrentVersion: false,
// sidebarPath: require.resolve('./sidebarsCommunity.js'),
Expand All @@ -98,9 +98,9 @@ const config = {
includeCurrentVersion: false,
editUrl: (params) => {
if (/\d+-standard-library\/\d+-cloud/.test(params.docPath)) {
return `${winglangOrgUrl}/wing/tree/dev/libs/wingsdk/src/cloud/${params.docPath.split("/").pop()}`
return `${winglangOrgUrl}/wing/tree/main/libs/wingsdk/src/cloud/${params.docPath.split("/").pop()}`
}
return `${winglangOrgUrl}/wing/tree/dev/docs/docs/${params.docPath}`
return `${winglangOrgUrl}/wing/tree/main/docs/docs/${params.docPath}`
},
},
blog: {
Expand Down

1 comment on commit 1452e25

@vercel
Copy link

@vercel vercel bot commented on 1452e25 Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.