Skip to content

Commit

Permalink
Copy changelog to Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Jun 13, 2024
1 parent 36d9b28 commit fd4ccf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ circuit-ui-global.css
docs/packages/
docs/contributing/1-overview.mdx
docs/contributing/*-contributing-*.mdx
docs/introduction/*-changelog.mdx

# Packages #

Expand Down
1 change: 1 addition & 0 deletions scripts/copy-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ done

# CONTRIBUTING.md

echo -e "import { Meta } from '../../.storybook/components';\n\n<Meta title=\"Introduction/Changelog\" />\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<Meta title=\"Contributing/Overview\" />\n\n$(cat "./CONTRIBUTING.md")" > "./docs/contributing/1-overview.mdx"
echo -e "import { Meta } from '../../.storybook/components';\n\n<Meta title=\"Contributing/Contributing Icons\" />\n\n$(cat "./packages/icons/CONTRIBUTING.md")" > "./docs/contributing/7-contributing-icons.mdx"

0 comments on commit fd4ccf7

Please sign in to comment.