Skip to content

Commit 736e13d

Browse files
author
Chris Cho
authored
DOCSP-23284: [CSFLE] make language selection more prominent and make it apply to full project download (#1270)
* fix tabgroup for sample project downloads in CSFLE Quick Start * use the language selector * update format * add language to code blocks * relocate tabs-selector directive * update text * tweaks
1 parent d17f93e commit 736e13d

File tree

10 files changed

+73
-24
lines changed

10 files changed

+73
-24
lines changed

source/core/csfle/quick-start.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ Before You Get Started
4646

4747
.. include:: /includes/set-up-section.rst
4848

49+
.. include:: /includes/select-your-language.rst
50+
4951
.. see:: Full Application
5052

51-
To see the complete code for the application you make in this guide,
52-
select the tab corresponding to your programming language and follow
53-
the provided link:
53+
To view the complete runnable application code for this tutorial, go to the
54+
following link:
5455

55-
.. tabs::
56+
.. tabs-drivers::
5657

5758
.. tab:: Java
5859
:tabid: java-sync
@@ -84,6 +85,8 @@ Before You Get Started
8485
Procedure
8586
---------
8687

88+
.. include:: /includes/tutorials/language-id.rst
89+
8790
.. procedure::
8891
:style: normal
8992

source/core/csfle/tutorials/aws/aws-automatic.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ Before You Get Started
3232

3333
.. include:: /includes/fact-csfle-placeholder.rst
3434

35+
.. include:: /includes/select-your-language.rst
36+
3537
.. see:: Full Application
3638

37-
To see the complete code for the application you make in this guide,
38-
select the tab corresponding to your programming language and follow
39-
the provided link:
39+
To view the complete runnable application code for this tutorial, go to the
40+
following link:
4041

41-
.. tabs::
42+
.. tabs-drivers::
4243

4344
.. tab:: Java
4445
:tabid: java-sync
@@ -70,6 +71,8 @@ Before You Get Started
7071
Set Up the KMS
7172
--------------
7273

74+
.. include:: /includes/tutorials/language-id.rst
75+
7376
.. procedure::
7477
:style: normal
7578

source/core/csfle/tutorials/azure/azure-automatic.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ Before You Get Started
3131

3232
.. include:: /includes/fact-csfle-placeholder.rst
3333

34+
.. include:: /includes/select-your-language.rst
35+
3436
.. see:: Full Application
3537

36-
To see the complete code for the application you make in this guide,
37-
select the tab corresponding to your programming language and follow
38-
the provided link:
38+
To view the complete runnable application code for this tutorial, go to the
39+
following link:
3940

40-
.. tabs::
41+
.. tabs-drivers::
4142

4243
.. tab:: Java
4344
:tabid: java-sync
@@ -69,6 +70,8 @@ Before You Get Started
6970
Set Up the KMS
7071
--------------
7172

73+
.. include:: /includes/tutorials/language-id.rst
74+
7275
.. procedure::
7376
:style: normal
7477

source/core/csfle/tutorials/gcp/gcp-automatic.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ Before You Get Started
3030

3131
.. include:: /includes/fact-csfle-placeholder.rst
3232

33+
.. include:: /includes/select-your-language.rst
34+
3335
.. see:: Full Application
3436

35-
To see the complete code for the application you make in this guide,
36-
select the tab corresponding to your programming language and follow
37-
the provided link:
37+
To view the complete runnable application code for this tutorial, go to the
38+
following link:
3839

39-
.. tabs::
40+
.. tabs-drivers::
4041

4142
.. tab:: Java
4243
:tabid: java-sync
@@ -68,6 +69,8 @@ Before You Get Started
6869
Set Up the KMS
6970
--------------
7071

72+
.. include:: /includes/tutorials/language-id.rst
73+
7174
.. procedure::
7275
:style: normal
7376

source/includes/quick-start/dek.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
you are using the Local Key Provider, set the provider name to
1414
``local``.
1515

16-
.. include:: /includes/tab-note.rst
17-
1816
.. tabs-drivers::
1917

2018
.. tab::
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Select the programming language for which you want to see code examples for
2+
from the :guilabel:`Select your language` dropdown menu on the right side of
3+
the page.

source/includes/tutorials/automatic/aws/dek.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Add the service account credentials to your CSFLE-enabled client
77
code.
88

9-
.. include:: /includes/tab-note.rst
10-
119
.. include:: /includes/tutorials/automatic/aws/iam-credentials-note.rst
1210

1311
.. tabs-drivers::

source/includes/tutorials/automatic/azure/dek.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
Add the service account credentials to your CSFLE-enabled client
99
code.
1010

11-
.. include:: /includes/tab-note.rst
12-
1311
.. tip::
1412

1513
You recorded your {+azure-kv+} credentials in the

source/includes/tutorials/automatic/gcp/dek.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Add the service account credentials to your CSFLE-enabled client
77
code.
88

9-
.. include:: /includes/tab-note.rst
10-
119
.. include:: /includes/tutorials/automatic/gcp/gcp-credentials-note.rst
1210

1311
.. tabs-drivers::
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.. tabs-drivers::
2+
3+
.. tab::
4+
:tabid: java-sync
5+
6+
.. code-block:: java
7+
8+
// You are viewing the Java synchronous driver code examples.
9+
// Use the dropdown menu to select a different driver.
10+
11+
.. tab::
12+
:tabid: nodejs
13+
14+
.. code-block:: javascript
15+
16+
// You are viewing the Node.js driver code examples.
17+
// Use the dropdown menu to select a different driver.
18+
19+
.. tab::
20+
:tabid: python
21+
22+
.. code-block:: python
23+
24+
# You are viewing the Python driver code examples.
25+
# Use the dropdown menu to select a different driver.
26+
27+
.. tab::
28+
:tabid: csharp
29+
30+
.. code-block:: csharp
31+
32+
// You are viewing the C# driver code examples.
33+
// Use the dropdown menu to select a different driver.
34+
35+
.. tab::
36+
:tabid: go
37+
38+
.. code-block:: go
39+
40+
// You are viewing the Golang driver code examples.
41+
// Use the dropdown menu to select a different driver.
42+

0 commit comments

Comments
 (0)