From 54a2461328cb2d4f46c5c8d9de85ecc67e64d735 Mon Sep 17 00:00:00 2001 From: Amarantha Kulkarni Date: Tue, 24 Aug 2021 13:09:20 -0700 Subject: [PATCH 1/2] Do not merge: Add tab for playground And update description text for the three tabs --- .../hello-world/pages/start-using-sdk.adoc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/modules/hello-world/pages/start-using-sdk.adoc b/modules/hello-world/pages/start-using-sdk.adoc index f1c7906e..abc25b9d 100644 --- a/modules/hello-world/pages/start-using-sdk.adoc +++ b/modules/hello-world/pages/start-using-sdk.adoc @@ -109,19 +109,32 @@ If you want to copy and paste to run the full example, here it is: [{tabs}] ==== -Local Couchbase Server:: +Couchbase Playground:: + -- +Run this example right here in your browser. + +[source,java] +---- +include::example$StartUsing.java[tags=**] +---- +-- + +Local Couchbase Server:: ++ +-- +Copy and run this example into your local environment. Note that Couchbase Server and SDK must be installed and running before executing this example. + [source,java] ---- include::example$StartUsing.java[tags=**] ---- -- -Couchbase Cloud Sample:: +Couchbase Cloud:: + -- -If you are connecting to https://docs.couchbase.com/cloud/index.html[Couchbase Cloud], be sure to get the correct endpoint as well as user, password, and `couchbasecloudbucket` -- and see the <>, below. +To connect to https://docs.couchbase.com/cloud/index.html[Couchbase Cloud], replace the variables in this example with the correct endpoint as well as user, password, and `couchbasecloudbucket` for your account. Also see the <> below for additional details. [source,java] ---- From c2e2a2d4f00271a5d84cb29bdbc8e48ad4804df6 Mon Sep 17 00:00:00 2001 From: Amarantha Kulkarni Date: Tue, 24 Aug 2021 13:16:35 -0700 Subject: [PATCH 2/2] Add try-it role to src block --- modules/hello-world/pages/start-using-sdk.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hello-world/pages/start-using-sdk.adoc b/modules/hello-world/pages/start-using-sdk.adoc index abc25b9d..fc52b3c3 100644 --- a/modules/hello-world/pages/start-using-sdk.adoc +++ b/modules/hello-world/pages/start-using-sdk.adoc @@ -114,7 +114,7 @@ Couchbase Playground:: -- Run this example right here in your browser. -[source,java] +[source.try-it,java] ---- include::example$StartUsing.java[tags=**] ----