Skip to content

Commit 5d49648

Browse files
authored
Add If loggedIn filter to API guest keys in getting started CLI section.
2 parents 0cc4c16 + 8bd7af2 commit 5d49648

19 files changed

+114
-76
lines changed

src/pages/docs/chat/getting-started/javascript.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Replace `<YOUR_ABLY_API_KEY>` with your actual API key from step 2, and add `.en
6262

6363
### (Optional) Install Ably CLI <a id="install-cli"/>
6464

65-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
65+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
6666

6767
1. Install the Ably CLI:
6868

@@ -80,9 +80,11 @@ ably login
8080
```
8181
</Code>
8282

83-
<Aside data-type='note'>
84-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
85-
</Aside>
83+
<If loggedIn={false}>
84+
<Aside data-type='note'>
85+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
86+
</Aside>
87+
</If>
8688

8789
## Step 1: Connect to Ably <a id="step-1"/>
8890

src/pages/docs/chat/getting-started/kotlin.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ implementation("com.ably.chat:chat-extensions-compose:<latest-version>")
4747

4848
### (Optional) Install Ably CLI <a id="install-cli"/>
4949

50-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
50+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
5151

5252
1. Install the Ably CLI:
5353

@@ -65,9 +65,11 @@ ably login
6565
```
6666
</Code>
6767

68-
<Aside data-type='note'>
69-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
70-
</Aside>
68+
<If loggedIn={false}>
69+
<Aside data-type='note'>
70+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
71+
</Aside>
72+
</If>
7173

7274
## Step 1: Setting up Ably <a id="step-1"/>
7375

src/pages/docs/chat/getting-started/react-native.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ cd ios && pod install && cd ..
6666

6767
### (Optional) Install Ably CLI <a id="install-cli"/>
6868

69-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
69+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
7070

7171
1. Install the Ably CLI:
7272

@@ -84,9 +84,11 @@ ably login
8484
```
8585
</Code>
8686

87-
<Aside data-type='note'>
88-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
89-
</Aside>
87+
<If loggedIn={false}>
88+
<Aside data-type='note'>
89+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
90+
</Aside>
91+
</If>
9092

9193
## Step 1: Setting up the Ably and Chat client providers <a id="step-1"/>
9294

src/pages/docs/chat/getting-started/react-ui-components.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ That's all the setup you need—the kit's CSS is automatically bundled by Vite a
6969

7070
### (Optional) Install Ably CLI <a id="install-cli"/>
7171

72-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
72+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
7373

7474
1. Install the Ably CLI:
7575

@@ -87,9 +87,11 @@ ably login
8787
```
8888
</Code>
8989

90-
<Aside data-type='note'>
91-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
92-
</Aside>
90+
<If loggedIn={false}>
91+
<Aside data-type='note'>
92+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
93+
</Aside>
94+
</If>
9395

9496
## Usage <a id="usage"/>
9597

src/pages/docs/chat/getting-started/react.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Replace `<YOUR_ABLY_API_KEY>` with your actual API key from step 2, and add `.en
6565

6666
### (Optional) Install Ably CLI <a id="install-cli"/>
6767

68-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
68+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
6969

7070
1. Install the Ably CLI:
7171

@@ -83,9 +83,11 @@ ably login
8383
```
8484
</Code>
8585

86-
<Aside data-type='note'>
87-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
88-
</Aside>
86+
<If loggedIn={false}>
87+
<Aside data-type='note'>
88+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
89+
</Aside>
90+
</If>
8991

9092
## Adding required imports <a id="imports"/>
9193

src/pages/docs/chat/getting-started/swift.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It will take you through the following steps:
2929

3030
### (Optional) Install Ably CLI <a id="install-cli"/>
3131

32-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
32+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
3333

3434
1. Install the Ably CLI:
3535

@@ -47,9 +47,11 @@ ably login
4747
```
4848
</Code>
4949

50-
<Aside data-type='note'>
51-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
52-
</Aside>
50+
<If loggedIn={false}>
51+
<Aside data-type='note'>
52+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
53+
</Aside>
54+
</If>
5355

5456
### Create a new project <a id="prerequisites-project"/>
5557

src/pages/docs/getting-started/dotnet.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dotnet add package ably.io
4242

4343
### (Optional) Install Ably CLI <a id="install-cli"/>
4444

45-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
45+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
4646

4747
1. Install the Ably CLI:
4848

@@ -60,9 +60,11 @@ ably login
6060
```
6161
</Code>
6262

63-
<Aside data-type='note'>
64-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
65-
</Aside>
63+
<If loggedIn={false}>
64+
<Aside data-type='note'>
65+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
66+
</Aside>
67+
</If>
6668

6769
## Step 1: Connect to Ably <a id="step-1"/>
6870

src/pages/docs/getting-started/flutter.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Initialize the Ably service at the application level to prevent it from being re
166166

167167
### (Optional) Install Ably CLI <a id="install-cli"/>
168168

169-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
169+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
170170

171171
1. Install the Ably CLI:
172172

@@ -184,9 +184,11 @@ ably login
184184
```
185185
</Code>
186186

187-
<Aside data-type='note'>
188-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
189-
</Aside>
187+
<If loggedIn={false}>
188+
<Aside data-type='note'>
189+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
190+
</Aside>
191+
</If>
190192

191193
## Step 1: Connect to Ably <a id="step-1"/>
192194

src/pages/docs/getting-started/go.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ go get -u github.com/ably/ably-go/ably
3535

3636
### (Optional) Install Ably CLI <a id="install-cli"/>
3737

38-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
38+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
3939

4040
1. Install the Ably CLI:
4141

@@ -53,9 +53,11 @@ ably login
5353
```
5454
</Code>
5555

56-
<Aside data-type='note'>
57-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
58-
</Aside>
56+
<If loggedIn={false}>
57+
<Aside data-type='note'>
58+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
59+
</Aside>
60+
</If>
5961

6062
## Step 1: Connect to Ably <a id="step-1"/>
6163

src/pages/docs/getting-started/java.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ It will take you through the following steps:
5353

5454
### (Optional) Install Ably CLI <a id="install-cli"/>
5555

56-
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably Pub/Sub and Chat applications directly from your terminal.
56+
The [Ably CLI](https://github.com/ably/cli) provides a command-line interface for managing your Ably applications directly from your terminal.
5757

5858
1. Install the Ably CLI:
5959

@@ -71,9 +71,11 @@ ably login
7171
```
7272
</Code>
7373

74-
<Aside data-type='note'>
75-
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
76-
</Aside>
74+
<If loggedIn={false}>
75+
<Aside data-type='note'>
76+
The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.
77+
</Aside>
78+
</If>
7779

7880
## Step 1: Connect to Ably <a id="step-1"/>
7981

0 commit comments

Comments
 (0)