From 600ce1f0e104cff170035bcfd5ca88c50742fc16 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 28 Apr 2017 07:43:21 +1000 Subject: [PATCH] Fix edit this page link When we moved to github pages, we moved the doc source to `source` branch, and the `npm run publish` script force pushes the built site to the `master` branch. --- src/components/Docs/Container/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Docs/Container/index.js b/src/components/Docs/Container/index.js index 91bf9d76d7c..f368b26f857 100644 --- a/src/components/Docs/Container/index.js +++ b/src/components/Docs/Container/index.js @@ -29,7 +29,7 @@ class Container extends React.Component { const gitHubRepoUrl = 'https://github.com/storybooks/storybooks.github.io'; const docPath = `${selectedCatId}/${selectedSectionId}/${selectedItemId}`; - const gitHubRepoDocUrl = `${gitHubRepoUrl}/tree/master/src/docs/${docPath}.js`; + const gitHubRepoDocUrl = `${gitHubRepoUrl}/tree/source/src/docs/${docPath}.js`; return (