From a6ee001eeb525956385622a4ea55b8efda48b387 Mon Sep 17 00:00:00 2001 From: katiegoines Date: Tue, 2 Jul 2024 10:45:53 -0400 Subject: [PATCH 1/5] adding background color to plain prismtheme --- src/components/MDXComponents/code-theme.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MDXComponents/code-theme.ts b/src/components/MDXComponents/code-theme.ts index 8c130958154..aa87e708fc8 100644 --- a/src/components/MDXComponents/code-theme.ts +++ b/src/components/MDXComponents/code-theme.ts @@ -7,7 +7,8 @@ import type { PrismTheme } from 'prism-react-renderer'; */ export const theme: PrismTheme = { plain: { - color: '#d6deeb' + color: '#d6deeb', + backgroundColor: '#od1a26' }, styles: [ { From bf1bb19e9bda11e7902c43625262af895da437bd Mon Sep 17 00:00:00 2001 From: katiegoines Date: Tue, 2 Jul 2024 10:56:41 -0400 Subject: [PATCH 2/5] remove background --- src/components/MDXComponents/code-theme.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/MDXComponents/code-theme.ts b/src/components/MDXComponents/code-theme.ts index aa87e708fc8..8c130958154 100644 --- a/src/components/MDXComponents/code-theme.ts +++ b/src/components/MDXComponents/code-theme.ts @@ -7,8 +7,7 @@ import type { PrismTheme } from 'prism-react-renderer'; */ export const theme: PrismTheme = { plain: { - color: '#d6deeb', - backgroundColor: '#od1a26' + color: '#d6deeb' }, styles: [ { From a6e0c0ed0330bba7ccbefa9dce1b2f5f03bb9fde Mon Sep 17 00:00:00 2001 From: katiegoines Date: Tue, 2 Jul 2024 10:57:54 -0400 Subject: [PATCH 3/5] testing change to page --- src/components/MDXComponents/code-theme.ts | 3 ++- src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MDXComponents/code-theme.ts b/src/components/MDXComponents/code-theme.ts index 8c130958154..aa87e708fc8 100644 --- a/src/components/MDXComponents/code-theme.ts +++ b/src/components/MDXComponents/code-theme.ts @@ -7,7 +7,8 @@ import type { PrismTheme } from 'prism-react-renderer'; */ export const theme: PrismTheme = { plain: { - color: '#d6deeb' + color: '#d6deeb', + backgroundColor: '#od1a26' }, styles: [ { diff --git a/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx b/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx index c446e8c3e54..9c61846af81 100644 --- a/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx +++ b/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx @@ -91,7 +91,7 @@ To unsubscribe from updates, you can call `cancel()` on the subscription ```swift func cancelSubscription() { // Cancel the subscription listener when you're finished with it - subscription?.cancel() + subscription?.cancel() } ``` From 46faface91285bdd4bf0e108f37a2896361d52ed Mon Sep 17 00:00:00 2001 From: katiegoines Date: Tue, 2 Jul 2024 11:12:08 -0400 Subject: [PATCH 4/5] test doc change --- src/components/MDXComponents/code-theme.ts | 3 +-- src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx | 2 +- src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/MDXComponents/code-theme.ts b/src/components/MDXComponents/code-theme.ts index aa87e708fc8..8c130958154 100644 --- a/src/components/MDXComponents/code-theme.ts +++ b/src/components/MDXComponents/code-theme.ts @@ -7,8 +7,7 @@ import type { PrismTheme } from 'prism-react-renderer'; */ export const theme: PrismTheme = { plain: { - color: '#d6deeb', - backgroundColor: '#od1a26' + color: '#d6deeb' }, styles: [ { diff --git a/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx b/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx index 3235ad15def..3a8201c5617 100644 --- a/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx +++ b/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx @@ -25,7 +25,7 @@ val subscription = Amplify.API.subscribe( { Log.i("ApiQuickStart", "Subscription established") }, { Log.i("ApiQuickStart", "Todo create subscription received: ${(it.data as Todo).name}") }, { Log.e("ApiQuickStart", "Subscription failed", it) }, - { Log.i("ApiQuickStart", "Subscription completed") } + { Log.i("ApiQuickStart", "Subscription completed") } ) // Cancel the subscription listener when you're finished with it diff --git a/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx b/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx index 9c61846af81..c446e8c3e54 100644 --- a/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx +++ b/src/fragments/lib-v1/graphqlapi/ios/subscribe-data.mdx @@ -91,7 +91,7 @@ To unsubscribe from updates, you can call `cancel()` on the subscription ```swift func cancelSubscription() { // Cancel the subscription listener when you're finished with it - subscription?.cancel() + subscription?.cancel() } ``` From 6b5a68a9b984a21c134d80ff48bce5ec8a473b63 Mon Sep 17 00:00:00 2001 From: katiegoines Date: Tue, 2 Jul 2024 11:22:34 -0400 Subject: [PATCH 5/5] trying to reproduce --- src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx | 2 +- .../prev/build-a-backend/graphqlapi/subscribe-data/index.mdx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx b/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx index 3a8201c5617..2475d4a3f17 100644 --- a/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx +++ b/src/fragments/lib-v1/graphqlapi/android/subscribe-data.mdx @@ -26,7 +26,7 @@ val subscription = Amplify.API.subscribe( { Log.i("ApiQuickStart", "Todo create subscription received: ${(it.data as Todo).name}") }, { Log.e("ApiQuickStart", "Subscription failed", it) }, { Log.i("ApiQuickStart", "Subscription completed") } -) +) //changes here // Cancel the subscription listener when you're finished with it subscription.cancel(); diff --git a/src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/subscribe-data/index.mdx b/src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/subscribe-data/index.mdx index 0f758f8ec05..2d69fa11118 100644 --- a/src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/subscribe-data/index.mdx +++ b/src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/subscribe-data/index.mdx @@ -468,6 +468,8 @@ import android1 from '/src/fragments/lib-v1/graphqlapi/android/subscribe-data.md +// changes here too + import flutter3 from '/src/fragments/lib-v1/graphqlapi/flutter/subscribe-data.mdx';