Skip to content

Commit

Permalink
chore: update edit urls to point to dev branch (#530)
Browse files Browse the repository at this point in the history
during code freeze edit docs should be on dev branch and not on main

# 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)

Co-authored-by: Uri Bar <[email protected]>
  • Loading branch information
ainvoner and staycoolcall911 authored Jul 13, 2023
1 parent 9ac4cd0 commit 5bd73e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const config = {
"docusaurus-plugin-sass",
"docusaurus-plugin-segment",

// this is needed in order to to support symlinked `docs/` directory
// this is needed in order to support symlinked `docs/` directory
// which is the mechanism we use when we develop locally with the winglang repo.
// see https://github.com/facebook/docusaurus/issues/3272#issuecomment-876374383
function (context, options) {
Expand All @@ -80,7 +80,7 @@ const config = {
id: 'contributing',
path: 'contributing',
routeBasePath: 'contributing',
editUrl: (params) => `${winglangOrgUrl}/wing/tree/main/docs/contributing/${params.docPath}`,
editUrl: (params) => `${winglangOrgUrl}/wing/tree/dev/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/main/libs/wingsdk/src/cloud/${params.docPath.split("/").pop()}`
return `${winglangOrgUrl}/wing/tree/dev/libs/wingsdk/src/cloud/${params.docPath.split("/").pop()}`
}
return `${winglangOrgUrl}/wing/tree/main/docs/docs/${params.docPath}`
return `${winglangOrgUrl}/wing/tree/dev/docs/docs/${params.docPath}`
},
},
blog: {
Expand Down

1 comment on commit 5bd73e3

@vercel
Copy link

@vercel vercel bot commented on 5bd73e3 Jul 13, 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.