Skip to content

Commit

Permalink
chore: update copy api script
Browse files Browse the repository at this point in the history
  • Loading branch information
apteryxxyz committed Oct 19, 2024
1 parent 05208ed commit 259263f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/copy-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ process_subpackage() {
fi

echo "Processing subpackage $name"
escaped_name=$(echo "$name" | sed 's/@/\\@/g')
escaped_name=$(echo "$escaped_name" | sed 's/\//\\/g')
escaped_name=$(echo "$name" | sed 's/\//\\\//g' | sed 's/@/\\@/g')

sed -i -e "s/title: \(.*\)/title: \"$escaped_name\"/" "$dir/index.mdx"
sed -i -e "s/## Index/ /" "$dir/index.mdx"
echo "{ \"title\": \"$title\" }" >"$dir/meta.json"
Expand Down

0 comments on commit 259263f

Please sign in to comment.