Skip to content

Commit a671036

Browse files
committed
Fix copying of template docs
1 parent 7a05693 commit a671036

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

scripts/copy-docs.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ for package in "${packages[@]}"; do
1616
echo -e "import { Meta } from '../../.storybook/components';\n\n<Meta title=\"Packages/${package_name}\" />\n\n$(cat ${src_file_path})" > "${dest_file_path}"
1717
done
1818

19+
templates=(./templates/*)
20+
1921
mkdir -p ./docs/templates
2022

2123
for template in "${templates[@]}"; do
2224
template_name=$(echo ${template} | cut -d'/' -f 3)
2325
src_file_path="${template}/README.md"
2426
dest_file_path="./docs/templates/${template_name}.mdx"
2527

26-
echo -e "import { Meta } from '../../.storybook/components';\n\n<Meta title=\"Packages/${template_name}\" />\n\n$(cat ${src_file_path})" > "${dest_file_path}"
28+
echo -e "import { Meta } from '../../.storybook/components';\n\n<Meta title=\"Templates/${template_name}\" />\n\n$(cat ${src_file_path})" > "${dest_file_path}"
2729
done
2830

2931
# CONTRIBUTING.md

templates/astro/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A template for Circuit UI + Astro apps with SumUp's frontend stack.
1010

1111
## 💻 Prerequisites
1212

13-
- You should have **Node.js** installed at a version equal to or above **`v18.14.1`**.
13+
- You should have **Node.js** installed at a version equal to or above **`v20.0.0`**.
1414

1515
## ✨ Setting up a new project
1616

templates/remix/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A template for Circuit UI + Remix apps with SumUp's frontend stack.
1010

1111
## 💻 Prerequisites
1212

13-
- You should have **Node.js** installed at a version equal to or above **`v18.0.0`**.
13+
- You should have **Node.js** installed at a version equal to or above **`v20.0.0`**.
1414

1515
## ✨ Setting up a new project
1616

0 commit comments

Comments
 (0)