diff --git a/.gitignore b/.gitignore index 64c5388108..8eba129148 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ circuit-ui-global.css docs/packages/ docs/contributing/1-overview.mdx docs/contributing/*-contributing-*.mdx +docs/introduction/*-changelog.mdx # Packages # diff --git a/scripts/copy-docs.sh b/scripts/copy-docs.sh index 1e3fa2b473..fdd2812441 100755 --- a/scripts/copy-docs.sh +++ b/scripts/copy-docs.sh @@ -18,5 +18,6 @@ done # CONTRIBUTING.md +echo -e "import { Meta } from '../../.storybook/components';\n\n\n\n$(cat "./packages/circuit-ui/CHANGELOG.md")" | sed -r 's/@sumup\/circuit-ui/Changelog/g' | sed -r 's/ >=18/ {` >=18`}/g' | sed -r 's/ <18/ {` <18`}/g' > "./docs/introduction/5-changelog.mdx" echo -e "import { Meta } from '../../.storybook/components';\n\n\n\n$(cat "./CONTRIBUTING.md")" > "./docs/contributing/1-overview.mdx" echo -e "import { Meta } from '../../.storybook/components';\n\n\n\n$(cat "./packages/icons/CONTRIBUTING.md")" > "./docs/contributing/7-contributing-icons.mdx"