From 259263fa42c325c0e620109cca8ccc2266e2edcd Mon Sep 17 00:00:00 2001 From: Apteryx Date: Sun, 20 Oct 2024 05:35:44 +1300 Subject: [PATCH] chore: update copy api script --- website/copy-api.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/copy-api.sh b/website/copy-api.sh index 43452a79..48e95fcc 100755 --- a/website/copy-api.sh +++ b/website/copy-api.sh @@ -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"