diff --git a/.changeset/clean-files-wonder.md b/.changeset/clean-files-wonder.md new file mode 100644 index 0000000000..a973c09117 --- /dev/null +++ b/.changeset/clean-files-wonder.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-documentation': patch +--- + +Added attached stories to changelog and search-icons pages to fix "Edit this page on Github" feature. diff --git a/packages/documentation/.storybook/blocks/footer.tsx b/packages/documentation/.storybook/blocks/footer.tsx index 4475b58911..75d20668eb 100644 --- a/packages/documentation/.storybook/blocks/footer.tsx +++ b/packages/documentation/.storybook/blocks/footer.tsx @@ -35,12 +35,14 @@ function getGitHubUrl(path: String) { return `${BASEURL}${path.replace(/^\./, '').replace(/\.stories\.ts$/, '.docs.mdx')}`; } -export default (params: { pathToStoryFile: String }) => ( +export default (params: { pathToStoryFile?: String }) => ( <>
- - Edit this page on GitHub - + {params.pathToStoryFile && ( + + Edit this page on GitHub + + )}