* add prettier ignore file
* format file and update config
* update home config
* add prettierignore config
* 🤖 update auto-deploy action
* make script file executable
* bump checkout action to version 4
* remove duplicate script and fix action
15 lines
339 B
Bash
Executable File
15 lines
339 B
Bash
Executable File
# Input and output files
|
|
input_file="README.md"
|
|
output_file="./docs/portfolio.md"
|
|
|
|
# Clear the output file
|
|
> "$output_file"
|
|
|
|
# set vitepress layout
|
|
echo --- >> "$output_file"
|
|
echo layout: home >> "$output_file"
|
|
echo --- >> "$output_file"
|
|
echo "" >> "$output_file"
|
|
|
|
# Copy portfolio table
|
|
grep -P '^\|.*\|$' "$input_file" >> "$output_file" |