Skip to content

Commit

Permalink
Merge branch 'ADP-1880-SEO'
Browse files Browse the repository at this point in the history
* ADP-1880-SEO:
  Fixed SEO
  • Loading branch information
Lutik-sun committed Feb 13, 2025
2 parents 39ae634 + 3e72679 commit 71d4605
Show file tree
Hide file tree
Showing 255 changed files with 547 additions and 508 deletions.
39 changes: 39 additions & 0 deletions scripts/change-seo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import os
import re

# Define path to markdown files
MD_DIRECTORY = "/Users/liudmilanemkova/Desktop/adapty-docs/versioned_docs/version-3.0/"

# Regex patterns for extracting fields
description_pattern = re.compile(r'description:\s*"(.*?)"', re.IGNORECASE)
metadata_pattern = re.compile(r'metadataTitle:\s*"(.*?)"', re.IGNORECASE)

# Iterate through all .md files in the directory
for filename in os.listdir(MD_DIRECTORY):
if filename.endswith(".md"):
file_path = os.path.join(MD_DIRECTORY, filename)

with open(file_path, "r", encoding="utf-8") as file:
content = file.read()

# Extract existing values
description_match = description_pattern.search(content)
metadata_match = metadata_pattern.search(content)

if description_match and metadata_match:
current_description = description_match.group(1)
current_metadata = metadata_match.group(1)

# Swap the values
updated_content = description_pattern.sub(f'description: "{current_metadata}"', content)
updated_content = metadata_pattern.sub(f'metadataTitle: "{current_description}"', updated_content)

# Save the updated content
with open(file_path, "w", encoding="utf-8") as file:
file.write(updated_content)

print(f"✅ Swapped fields in: {filename}")
else:
print(f"⚠️ Fields not found in: {filename}")

print("🎉 Swap process completed!")
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/InvalidProductIdentifiers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Fix for Code-1000 noProductIDsFound error"
description: "Fixing Invalid Product Identifiers | Adapty Docs"
metadataTitle: "Resolve invalid product identifier errors when managing subscriptions in Adapty."
description: "Resolve invalid product identifier errors when managing subscriptions in Adapty."
metadataTitle: "Fixing Invalid Product Identifiers | Adapty Docs"
---

import ProvideBundleID from '@site/src/components/reusable/ProvideBundleID.md';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/ab-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "A/B test"
description: "A/B Testing for Paywalls | Adapty Docs"
metadataTitle: "Optimize subscription pricing with A/B tests in Adapty for better conversion rates."
description: "Optimize subscription pricing with A/B tests in Adapty for better conversion rates."
metadataTitle: "A/B Testing for Paywalls | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/access-level.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Access levels"
description: "Understanding Access Levels | Adapty Docs"
metadataTitle: "Learn about access levels in Adapty and how to configure them for user management."
description: "Learn about access levels in Adapty and how to configure them for user management."
metadataTitle: "Understanding Access Levels | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/account-1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Account"
description: "Managing Your Adapty Account | Adapty Docs"
metadataTitle: "Manage your Adapty account settings and configure app integrations with ease."
description: "Manage your Adapty account settings and configure app integrations with ease."
metadataTitle: "Managing Your Adapty Account | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/account.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Account details"
description: "Adapty Account Management | Adapty Docs"
metadataTitle: "Manage your Adapty account and optimize settings for better subscription tracking."
description: "Manage your Adapty account and optimize settings for better subscription tracking."
metadataTitle: "Adapty Account Management | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/active-subscriptions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Active subscriptions"
description: "Managing Active Subscriptions | Adapty Docs"
metadataTitle: "Monitor and manage active subscriptions with Adapty's robust analytics."
description: "Monitor and manage active subscriptions with Adapty's robust analytics."
metadataTitle: "Managing Active Subscriptions | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/active-trials.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Active trials"
description: "Managing Active Trials | Adapty Docs"
metadataTitle: "Track and manage active subscription trials with Adapty analytics."
description: "Track and manage active subscription trials with Adapty analytics."
metadataTitle: "Managing Active Trials | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/adapty-paywall-builder-legacy.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Design paywalls with legacy Paywall Builder"
description: "Adapty Paywall Builder (Legacy) | Adapty Docs"
metadataTitle: "Use the legacy Adapty Paywall Builder to manage in-app subscriptions."
description: "Use the legacy Adapty Paywall Builder to manage in-app subscriptions."
metadataTitle: "Adapty Paywall Builder (Legacy) | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/adapty-paywall-builder.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Design paywalls with new Paywall Builder"
description: "Using Adapty Paywall Builder | Adapty Docs"
metadataTitle: "Master Adapty's Paywall Builder to create high-converting in-app subscription offers."
description: "Master Adapty's Paywall Builder to create high-converting in-app subscription offers."
metadataTitle: "Using Adapty Paywall Builder | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/add-audience-paywall-ab-test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Add audience and paywall or A/B test to placement"
description: "Adding Audience Paywall A/B Tests | Adapty Docs"
metadataTitle: "Run A/B tests on paywalls for different audience segments in Adapty."
description: "Run A/B tests on paywalls for different audience segments in Adapty."
metadataTitle: "Adding Audience Paywall A/B Tests | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/add-offer-to-paywall.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Add offer to paywall"
description: "Adding Offers to Paywalls | Adapty Docs"
metadataTitle: "Add custom offers to paywalls in Adapty to boost conversion rates."
description: "Add custom offers to paywalls in Adapty to boost conversion rates."
metadataTitle: "Adding Offers to Paywalls | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Add paywall locale in Adapty Paywall Builder"
description: "Add Paywall Locale in Adapty Builder | Adapty Docs"
metadataTitle: "Add localized paywalls in Adapty’s Paywall Builder to improve user experience worldwide."
description: "Add localized paywalls in Adapty’s Paywall Builder to improve user experience worldwide."
metadataTitle: "Add Paywall Locale in Adapty Builder | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/add-product-to-paywall.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Add product to paywall"
description: "Adding Products to Paywalls | Adapty Docs"
metadataTitle: "Learn how to add and manage products on paywalls in Adapty."
description: "Learn how to add and manage products on paywalls in Adapty."
metadataTitle: "Adding Products to Paywalls | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/add-remote-config-locale.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Remote config paywall localization"
description: "Adding Remote Config Locales | Adapty Docs"
metadataTitle: "Add remote config locales to personalize Adapty paywalls."
description: "Add remote config locales to personalize Adapty paywalls."
metadataTitle: "Adding Remote Config Locales | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/adjust.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Adjust"
description: "Adjust Integration for Subscription Analytics | Adapty Docs"
metadataTitle: "Connect Adjust with Adapty for better subscription tracking and analytics."
description: "Connect Adjust with Adapty for better subscription tracking and analytics."
metadataTitle: "Adjust Integration for Subscription Analytics | Adapty Docs"

---

Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/airbridge.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Airbridge"
description: "Airbridge Integration | Adapty Docs"
metadataTitle: "Connect Adapty with Airbridge to track marketing and attribution insights."
description: "Connect Adapty with Airbridge to track marketing and attribution insights."
metadataTitle: "Airbridge Integration | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/amplitude.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Amplitude"
description: "Amplitude Integration | Adapty Docs"
metadataTitle: "Integrate Amplitude with Adapty for better user behavior insights."
description: "Integrate Amplitude with Adapty for better user behavior insights."
metadataTitle: "Amplitude Integration | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-charts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Charts"
description: "Analyzing Subscription Analytics Charts | Adapty Docs"
metadataTitle: "Analyze subscription trends with Adapty’s analytics charts."
description: "Analyze subscription trends with Adapty’s analytics charts."
metadataTitle: "Analyzing Subscription Analytics Charts | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-cohorts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Cohort analysis"
description: "Understanding Analytics Cohorts | Adapty Docs"
metadataTitle: "Use analytics cohorts in Adapty to track user engagement and subscription trends."
description: "Use analytics cohorts in Adapty to track user engagement and subscription trends."
metadataTitle: "Understanding Analytics Cohorts | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-conversion.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Conversion analysis"
description: "Subscription Conversion Analytics | Adapty Docs"
metadataTitle: "Measure subscription conversion rates using Adapty’s analytics tools."
description: "Measure subscription conversion rates using Adapty’s analytics tools."
metadataTitle: "Subscription Conversion Analytics | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-funnels.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Funnel analysis"
description: "Analytics Funnels Setup | Adapty Docs"
metadataTitle: "Understand analytics funnels in Adapty to monitor user behavior and improve conversions."
description: "Understand analytics funnels in Adapty to monitor user behavior and improve conversions."
metadataTitle: "Analytics Funnels Setup | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-integration.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Analytics integrations"
description: "Analytics Integration Guide | Adapty Docs"
metadataTitle: "Integrate analytics tools with Adapty to track and optimize user subscriptions."
description: "Integrate analytics tools with Adapty to track and optimize user subscriptions."
metadataTitle: "Analytics Integration Guide | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/analytics-retention.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Retention analysis"
description: "Understanding Analytics Retention | Adapty Docs"
metadataTitle: "Understand user retention analytics and optimize your subscription strategy."
description: "Understand user retention analytics and optimize your subscription strategy."
metadataTitle: "Understanding Analytics Retention | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-handling-events-legacy.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Handle paywall events"
description: "Handling Events on Android (Legacy) | Adapty Docs"
metadataTitle: "Handle subscription events in Android (Legacy) with Adapty SDK."
description: "Handle subscription events in Android (Legacy) with Adapty SDK."
metadataTitle: "Handling Events on Android (Legacy) | Adapty Docs"
toc_max_heading_level: 4
---

Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-handling-events.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Handle paywall events"
description: "Handling Events in Android | Adapty Docs"
metadataTitle: "Handle Android subscription events efficiently with Adapty's event tracking tools."
description: "Handle Android subscription events efficiently with Adapty's event tracking tools."
metadataTitle: "Handling Events in Android | Adapty Docs"
toc_max_heading_level: 4
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Present Paywall Builder paywalls in Observer mode"
description: "Presenting Paywalls in Observer Mode | Adapty Docs"
metadataTitle: "Learn how to present paywalls in observer mode using Adapty’s Paywall Builder."
description: "Learn how to present paywalls in observer mode using Adapty’s Paywall Builder."
metadataTitle: "Presenting Paywalls in Observer Mode | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-present-paywalls-legacy.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Present legacy Paywall Builder paywalls"
description: "Presenting Paywalls on Android (Legacy) | Adapty Docs"
metadataTitle: "Present paywalls in Android (Legacy) and manage subscriptions effectively."
description: "Present paywalls in Android (Legacy) and manage subscriptions effectively."
metadataTitle: "Presenting Paywalls on Android (Legacy) | Adapty Docs"
---

<!--- android-present-paywalls-legacy.md --->
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-present-paywalls.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Present new Paywall Builder paywalls"
description: "Presenting Paywalls on Android | Adapty Docs"
metadataTitle: "Learn how to present paywalls on Android for effective monetization."
description: "Learn how to present paywalls on Android for effective monetization."
metadataTitle: "Presenting Paywalls on Android | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-products.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Product in Play Store"
description: "Managing Android Products | Adapty Docs"
metadataTitle: "Manage Android products with Adapty, streamline in-app purchases, and optimize monetization strategies."
description: "Manage Android products with Adapty, streamline in-app purchases, and optimize monetization strategies."
metadataTitle: "Managing Android Products | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-sdk-error-handling.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Handle errors"
description: "Handling Android SDK Errors | Adapty Docs"
metadataTitle: "Handle Android SDK errors effectively with Adapty’s troubleshooting guide."
description: "Handle Android SDK errors effectively with Adapty’s troubleshooting guide."
metadataTitle: "Handling Android SDK Errors | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-settings.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Google Play Store credentials"
description: "Configuring Android Settings | Adapty Docs"
metadataTitle: "Configure Android settings in Adapty for seamless subscription management."
description: "Configure Android settings in Adapty for seamless subscription management."
metadataTitle: "Configuring Android Settings | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/android-use-fallback-paywalls.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Android - Use fallback paywalls"
description: "Using Fallback Paywalls on Android | Adapty Docs"
metadataTitle: "Use fallback paywalls in Android apps with Adapty to ensure revenue flow."
description: "Use fallback paywalls in Android apps with Adapty to ensure revenue flow."
metadataTitle: "Using Fallback Paywalls on Android | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/api-reference.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "API reference"
description: "Adapty API Reference | Adapty Docs"
metadataTitle: "Explore Adapty’s API reference for complete integration details."
description: "Explore Adapty’s API reference for complete integration details."
metadataTitle: "Adapty API Reference | Adapty Docs"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Configure App Store integration"
description: "App Store Connection Configuration | Adapty Docs"
metadataTitle: "Configure your App Store connection for seamless subscription tracking."
description: "Configure your App Store connection for seamless subscription tracking."
metadataTitle: "App Store Connection Configuration | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/app-store-offers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Offers in App Store"
description: "Managing App Store Offers | Adapty Docs"
metadataTitle: "Set up and manage App Store offers to increase user retention."
description: "Set up and manage App Store offers to increase user retention."
metadataTitle: "Managing App Store Offers | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-3.0/app-store-products.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Product in App Store"
description: "Managing App Store Products | Adapty Docs"
metadataTitle: "Manage App Store products efficiently using Adapty’s subscription tools."
description: "Manage App Store products efficiently using Adapty’s subscription tools."
metadataTitle: "Managing App Store Products | Adapty Docs"
---

import Zoom from 'react-medium-image-zoom';
Expand Down
Loading

0 comments on commit 71d4605

Please sign in to comment.