From 02f82aee774be5c9c7d036529f9e17d16366f81e Mon Sep 17 00:00:00 2001 From: slorber Date: Wed, 17 Feb 2021 12:38:10 +0100 Subject: [PATCH] editUrl should target upstream release --- website/docusaurus.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 8dfa590321ac..f83ea28561f8 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -228,13 +228,15 @@ const LocaleConfigs = isI18nStaging // routeBasePath: '/', path: 'docs', sidebarPath: require.resolve('./sidebars.js'), - editUrl: ({locale, versionDocsDirPath, docPath}) => { + editUrl: ({locale, docPath}) => { if (locale !== 'en') { return `https://crowdin.com/project/docusaurus-v2/${locale}`; } - return `https://github.com/facebook/docusaurus/edit/master/website/${versionDocsDirPath}/${docPath}`; + // We want users to submit doc updates to the upstream/next version! + // Otherwise we risk losing the update on the next release. + const nextVersionDocsDirPath = 'docs'; + return `https://github.com/facebook/docusaurus/edit/master/website/${nextVersionDocsDirPath}/${docPath}`; }, - editCurrentVersion: true, showLastUpdateAuthor: true, showLastUpdateTime: true, remarkPlugins: [