chore: Add guides and comparison pages to landing site
This commit is contained in:
@@ -125,6 +125,22 @@ replace_urls_in_app() {
|
||||
|
||||
rm -f "$temp_file_list"
|
||||
|
||||
# Replace URLs in sitemap.xml and robots.txt (generated by next-sitemap)
|
||||
echo " 🗺️ Processing sitemap and robots.txt..."
|
||||
|
||||
# Find all sitemap files (sitemap.xml, sitemap-0.xml, etc.)
|
||||
find "$app_dir/public" -type f \( -name "sitemap*.xml" -o -name "robots.txt" \) 2>/dev/null | while IFS= read -r sitemap_file; do
|
||||
if [ -f "$sitemap_file" ]; then
|
||||
local rel_path="${sitemap_file#$app_dir/}"
|
||||
echo " 🔄 $rel_path"
|
||||
sed -e "s|$PLACEHOLDER_API|$API_URI|g" \
|
||||
-e "s|$PLACEHOLDER_DASHBOARD|$DASHBOARD_URI|g" \
|
||||
-e "s|$PLACEHOLDER_LANDING|$LANDING_URI|g" \
|
||||
-e "s|$PLACEHOLDER_WIKI|$WIKI_URI|g" \
|
||||
"$sitemap_file" > "${sitemap_file}.tmp" && mv "${sitemap_file}.tmp" "$sitemap_file"
|
||||
fi
|
||||
done
|
||||
|
||||
# Special handling for wiki: also replace URLs in openapi.local.json
|
||||
if [ "$app" = "wiki" ]; then
|
||||
local openapi_file="$app_dir/openapi.local.json"
|
||||
|
||||
Reference in New Issue
Block a user