Skip to content

Commit b710a04

Browse files
DOCSP-44514 Add links to connection landing page (#71)
1 parent aaddbf3 commit b710a04

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

source/connect.txt

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ instance of MongoDB:
7171

7272
client = mongoc_client_new ("mongodb://localhost:27017");
7373

74+
To learn more about connecting to local deployments, see :ref:`c-connect-local`
75+
in the Choose a Connection Target guide.
76+
7477
Atlas
7578
~~~~~
7679

@@ -81,6 +84,9 @@ deployment hosted on Atlas:
8184

8285
client = mongoc_client_new ("mongodb+srv://<db_username>:<db_password>@<hostname>/?<options>");
8386

87+
To learn more about connecting to Atlas, see :ref:`c-connect-atlas` in the
88+
Choose a Connection Target guide.
89+
8490
Replica Set
8591
~~~~~~~~~~~
8692

@@ -91,15 +97,17 @@ replica set:
9197

9298
client = mongoc_client_new ("mongodb+srv://<replica-set-member>/?replicaSet=<replica_set_name>");
9399

100+
To learn more about connecting to replica sets, see
101+
:ref:`c-connect-replica-sets` in the Choose a Connection Target guide.
102+
94103
Transport Layer Security (TLS)
95104
------------------------------
96105

97106
The following sections describe how to connect to MongoDB
98107
while enabling the TLS protocol.
99108

100-
.. TODO, uncomment once TLS page is merged
101-
.. To learn more about using TLS with the {+driver-short+},
102-
.. see :ref:`c-tls`.
109+
To learn more about using TLS with the {+driver-short+},
110+
see :ref:`c-tls`.
103111

104112
Enable TLS
105113
~~~~~~~~~~
@@ -108,9 +116,8 @@ The following tabs demonstrate how to enable TLS on a connection:
108116

109117
.. include:: /includes/connect/tls-tabs.rst
110118

111-
.. TODO, uncomment once TLS page is merged
112-
.. To learn more about enabling TLS, see :ref:`c-enable-tls` in
113-
.. the TLS configuration guide.
119+
To learn more about enabling TLS, see :ref:`c-enable-tls` in
120+
the TLS configuration guide.
114121

115122
Disable Hostname Verification
116123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -120,9 +127,9 @@ connecting by using TLS:
120127

121128
.. include:: /includes/connect/disable-host-verification-tabs.rst
122129

123-
.. TODO, uncomment once TLS page is merged
124-
.. To learn more about disabling hostname verification, see :ref:`c-certificate-revocation` in
125-
.. the TLS configuration guide.
130+
131+
To learn more about disabling hostname verification, see :ref:`c-certificate-revocation` in
132+
the TLS configuration guide.
126133

127134
Network Compression
128135
-------------------
@@ -185,5 +192,4 @@ The following code shows how to specify Stable API settings within a
185192

186193
mongoc_server_api_destroy (api);
187194

188-
.. TODO, uncomment once stable API page is merged
189-
.. To learn more about the {+stable-api+}, see :ref:`c-stable-api`.
195+
To learn more about the {+stable-api+}, see :ref:`c-stable-api`.

source/connect/connection-targets.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Overview
2323
In this guide, you can learn how to use a connection string and a ``mongoc_client_t`` object
2424
to connect to different types of MongoDB deployments.
2525

26+
.. _c-connect-atlas:
27+
2628
Atlas
2729
-----
2830

@@ -55,6 +57,8 @@ code also uses the ``mongoc_server_api_new()`` function to specify a {+stable-ap
5557
breaking changes when Atlas upgrades to a new version of {+mdb-server+}. To learn more
5658
about the {+stable-api+}, see the :ref:`c-stable-api` guide.
5759

60+
.. _c-connect-local:
61+
5862
Local Deployments
5963
-----------------
6064

@@ -71,6 +75,8 @@ deployment:
7175
:end-before: end-connect-local
7276
:dedent:
7377

78+
.. _c-connect-replica-sets:
79+
7480
Replica Sets
7581
------------
7682

source/connect/tls.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. c-tls:
1+
.. _c-tls:
22

33
========================================
44
Configure Transport Layer Security (TLS)

0 commit comments

Comments
 (0)