Skip to content

Commit

Permalink
Merge pull request #2396 from ngyikp/docs-fix-edit-link
Browse files Browse the repository at this point in the history
Fix edit link on docs/examples
  • Loading branch information
Hypnosphi authored Nov 29, 2017
2 parents b157cae + b9fe44c commit fea626a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/Docs/Container/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getEditUrl = (selectedSectionId, selectedItemId) => {
const gitHubRepoUrl = 'https://github.com/storybooks/storybook';
const docPath = `${selectedSectionId}/${selectedItemId}`;

return `${gitHubRepoUrl}/tree/master/docs/pages/${docPath}/index.md`;
return `${gitHubRepoUrl}/blob/master/docs/src/pages/${docPath}/index.md`;
};

const Container = ({ sections, selectedItem, selectedSectionId, selectedItemId }) => (
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Grid/Examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Examples = ({ items }) => (
<h1>Storybook Examples</h1>
<a
className="edit-link"
href="https://github.com/storybooks/storybook/edit/master/docs/pages/examples/_examples.yml"
href="https://github.com/storybooks/storybook/blob/master/docs/src/pages/examples/_examples.yml"
target="_blank"
rel="noopener noreferrer"
>
Expand Down

0 comments on commit fea626a

Please sign in to comment.