Skip to content

Commit 77c84b8

Browse files
committed
uniform connect step
1 parent b17d954 commit 77c84b8

File tree

2 files changed

+76
-10
lines changed

2 files changed

+76
-10
lines changed

source/includes/drivers_connect.rst

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44

55
- id: python
66
content: |
7+
8+
.. tip::
79

8-
The following is an outline with the minimum code necessary to connect to MongoDB using PyMongo.
9-
You'll make additions over the next few steps to read data.
10+
The following is an outline with the minimum code necessary to connect to MongoDB.
11+
You'll make additions over the next few steps to read data.
12+
13+
At line 4, replace the URI string with your own
14+
:ref:`Atlas connection string <guides-get-connection-string>`.
1015

1116
.. literalinclude:: /includes/code/python/crud_read_connect.py
1217
:caption: crud_read.py
@@ -26,8 +31,13 @@
2631
- id: go
2732
content: |
2833

29-
The following is an outline with the minimum code necessary to connect to MongoDB using the Go driver.
30-
You'll make additions over the next few steps to read data.
34+
.. tip::
35+
36+
The following is an outline with the minimum code necessary to connect to MongoDB.
37+
You'll make additions over the next few steps to read data.
38+
39+
At line 11, replace the URI string with your own
40+
:ref:`Atlas connection string <guides-get-connection-string>`.
3141

3242
.. literalinclude:: /includes/code/go/crud-read-connect.go
3343
:caption: crudRead.go
@@ -38,8 +48,13 @@
3848
- id: java-sync
3949
content: |
4050

41-
The following is an outline with the minimum code necessary to connect to MongoDB using the Java driver.
42-
You'll make additions over the next few steps to read data.
51+
.. tip::
52+
53+
The following is an outline with the minimum code necessary to connect to MongoDB.
54+
You'll make additions over the next few steps to read data.
55+
56+
At line 8, replace the URI string with your own
57+
:ref:`Atlas connection string <guides-get-connection-string>`.
4358

4459
.. literalinclude:: /includes/code/java/CrudReadConnect.java
4560
:caption: CrudRead.java
@@ -50,8 +65,13 @@
5065
- id: nodejs
5166
content: |
5267

53-
The following is an outline with the minimum code necessary to connect to MongoDB using the Node.js driver.
54-
You'll make additions over the next few steps to read data.
68+
.. tip::
69+
70+
The following is an outline with the minimum code necessary to connect to MongoDB.
71+
You'll make additions over the next few steps to read data.
72+
73+
At line 4, replace the URI string with your own
74+
:ref:`Atlas connection string <guides-get-connection-string>`.
5575

5676
.. literalinclude:: /includes/code/node/crud-read-connect.js
5777
:caption: crud-read.js
@@ -62,8 +82,13 @@
6282
- id: csharp
6383
content: |
6484

65-
The following is an outline with the minimum code necessary to connect to MongoDB using the C#/.NET driver.
66-
You'll make additions over the next few steps to read data.
85+
.. tip::
86+
87+
The following is an outline with the minimum code necessary to connect to MongoDB.
88+
You'll make additions over the next few steps to read data.
89+
90+
At line 5, replace the URI string with your own
91+
:ref:`Atlas connection string <guides-get-connection-string>`.
6792

6893
.. literalinclude:: /includes/code/dotnet/CrudReadConnect.cs
6994
:caption: CrudRead.cs

source/includes/drivers_connect_2.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
- id: python
66
content: |
77

8+
.. tip::
9+
10+
The following is an outline with the minimum code necessary to connect to MongoDB.
11+
You'll make additions over the next few steps to read data.
12+
13+
At line 4, replace the URI string with your own
14+
:ref:`Atlas connection string
15+
<guides-get-connection-string>`.
16+
817
.. literalinclude:: /includes/code/python/crud_read_connect_2.py
918
:caption: crud_read.py
1019
:language: python
@@ -23,6 +32,14 @@
2332
- id: go
2433
content: |
2534

35+
.. tip::
36+
37+
The following is an outline with the minimum code necessary to connect to MongoDB.
38+
You'll make additions over the next few steps to read data.
39+
40+
At line 13, replace the URI string with your own
41+
:ref:`Atlas connection string <guides-get-connection-string>`.
42+
2643
.. literalinclude:: /includes/code/go/crud-read-connect-2.go
2744
:caption: crudRead.go
2845
:language: go
@@ -32,6 +49,14 @@
3249
- id: java-sync
3350
content: |
3451

52+
.. tip::
53+
54+
The following is an outline with the minimum code necessary to connect to MongoDB.
55+
You'll make additions over the next few steps to read data.
56+
57+
At line 8, replace the URI string with your own
58+
:ref:`Atlas connection string <guides-get-connection-string>`.
59+
3560
.. literalinclude:: /includes/code/java/CrudReadConnect2.java
3661
:caption: CrudRead.java
3762
:language: java
@@ -41,6 +66,14 @@
4166
- id: nodejs
4267
content: |
4368

69+
.. tip::
70+
71+
The following is an outline with the minimum code necessary to connect to MongoDB.
72+
You'll make additions over the next few steps to read data.
73+
74+
At line 4, replace the URI string with your own
75+
:ref:`Atlas connection string <guides-get-connection-string>`.
76+
4477
.. literalinclude:: /includes/code/node/crud-read-connect-2.js
4578
:caption: crud-read.js
4679
:language: javascript
@@ -50,6 +83,14 @@
5083
- id: csharp
5184
content: |
5285

86+
.. tip::
87+
88+
The following is an outline with the minimum code necessary to connect to MongoDB.
89+
You'll make additions over the next few steps to read data.
90+
91+
At line 5, replace the URI string with your own
92+
:ref:`Atlas connection string <guides-get-connection-string>`.
93+
5394
.. literalinclude:: /includes/code/dotnet/CrudReadConnect2.cs
5495
:caption: CrudRead.cs
5596
:language: csharp

0 commit comments

Comments
 (0)