From 22e2023bcdfa02ad167d07ef92b4f4c35998b01a Mon Sep 17 00:00:00 2001 From: Andy Boedo Date: Mon, 7 Aug 2023 11:32:19 -0300 Subject: [PATCH 1/3] Added missing code block markers --- .../displaying-products/paywalls.md" | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" index 19d76ae7..89745e6a 100644 --- "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" +++ "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" @@ -124,37 +124,44 @@ Use your own hex codes, select a custom color, or use our color picker to select ## How to display a Paywall in your app 1. Option 1: _presentPaywallIfNeeded_ depending on an entitlement -```swift +[block:file] +[block:file] [ { "language": "swift", - "name": "Swift", + "name": "", "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_1.swift" } ] -``` +[/block] +[/block] +[block:file] 2. Option 2 _presentPaywallIfNeeded_ with custom logic: -```swift +[block:file] [ { "language": "swift", - "name": "Swift", + "name": "", "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_2.swift" } ] -``` +[/block] +[/block] +[block:file] 3. Option 3: present manually: -```swift +[block:file] [ { "language": "swift", - "name": "Swift", + "name": "", "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_3.swift" } ] -``` +[/block] +[/block] + ## Limitations **Platforms** (support for more coming) From cbe505e66da47b17a7443f3e6551371a883c02ce Mon Sep 17 00:00:00 2001 From: Andy Boedo Date: Mon, 7 Aug 2023 11:34:25 -0300 Subject: [PATCH 2/3] fix syntax --- .../displaying-products/paywalls.md" | 6 ------ 1 file changed, 6 deletions(-) diff --git "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" index 89745e6a..5672f1a4 100644 --- "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" +++ "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" @@ -125,7 +125,6 @@ Use your own hex codes, select a custom color, or use our color picker to select 1. Option 1: _presentPaywallIfNeeded_ depending on an entitlement [block:file] -[block:file] [ { "language": "swift", @@ -134,9 +133,7 @@ Use your own hex codes, select a custom color, or use our color picker to select } ] [/block] -[/block] -[block:file] 2. Option 2 _presentPaywallIfNeeded_ with custom logic: [block:file] [ @@ -147,9 +144,7 @@ Use your own hex codes, select a custom color, or use our color picker to select } ] [/block] -[/block] -[block:file] 3. Option 3: present manually: [block:file] [ @@ -160,7 +155,6 @@ Use your own hex codes, select a custom color, or use our color picker to select } ] [/block] -[/block] ## Limitations From 5c647825848ba1092b750e8c3d4c772b12af7602 Mon Sep 17 00:00:00 2001 From: Andy Boedo Date: Mon, 7 Aug 2023 11:37:23 -0300 Subject: [PATCH 3/3] fix docs path --- .../displaying-products/paywalls.md" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" index 5672f1a4..18c6ec6e 100644 --- "a/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" +++ "b/docs_source/\360\237\232\200 Getting Started/displaying-products/paywalls.md" @@ -129,7 +129,7 @@ Use your own hex codes, select a custom color, or use our color picker to select { "language": "swift", "name": "", - "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_1.swift" + "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls/paywalls_1.swift" } ] [/block] @@ -140,7 +140,7 @@ Use your own hex codes, select a custom color, or use our color picker to select { "language": "swift", "name": "", - "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_2.swift" + "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls/paywalls_2.swift" } ] [/block] @@ -151,7 +151,7 @@ Use your own hex codes, select a custom color, or use our color picker to select { "language": "swift", "name": "", - "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls_3.swift" + "file": "code_blocks/🚀 Getting Started/displaying-products/paywalls/paywalls_3.swift" } ] [/block]