Skip to content

Commit 9dd693b

Browse files
authored
DOCSP-46650: Cleanup (#137)
* DOCSP-46650: Cleanup * redirects * more cleanup * rename, test api link * api links * fix toc api link * monitoring, edits * check api links * LM feedback * snooty
1 parent 9419901 commit 9dd693b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+395
-8970
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ meta.yaml
1515
source/includes/hash.rst
1616
source/includes/table/
1717
source/includes/toc
18+
bson-ruby/
19+
mongo-ruby-driver/
1820
fabfile
1921
giza.log

Diff for: config/redirects

+149-93
Large diffs are not rendered by default.

Diff for: snooty.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "ruby-driver"
22
title = "Ruby MongoDB Driver"
33
toc_landing_pages = [
44
"/get-started",
5-
"/connect",
5+
"/read",
66
"/write",
77
"/indexes",
88
"/databases-collection",
@@ -24,4 +24,4 @@ version-number = "2.21"
2424
patch-version-number = "{+version-number+}.0" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.)
2525
version = "v{+version-number+}"
2626
stable-api = "Stable API"
27-
api-root = "https://www.mongodb.com/docs/ruby-driver/current/api"
27+
api-root = "https://www.mongodb.com/docs/ruby-driver/current/api/"

Diff for: source/aggregation.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,8 @@ This example creates pipeline stages to perform the following actions:
199199

200200
To run the following example, you must create an Atlas Search index on the ``restaurants``
201201
collection that covers the ``name`` field. Then, replace the ``"<your_search_index_name>"``
202-
placeholder with the name of the index.
203-
204-
.. TODO: Add a link in the callout to the Atlas Search index creation guide.
202+
placeholder with the name of the index. To learn how to create an Atlas Search index,
203+
see the :ref:`ruby-atlas-search-index` guide.
205204

206205
.. io-code-block::
207206
:copyable:
@@ -255,4 +254,4 @@ API Documentation
255254
~~~~~~~~~~~~~~~~~
256255

257256
To learn more about the Ruby driver's aggregation methods, see the
258-
API documentation for `Aggregation <{+api-root+}/Mongo/Collection/View/Aggregation.html>`__.
257+
API documentation for :ruby-api:`Aggregation <Collection/View/Aggregation.html>`.

Diff for: source/old-content/tutorials/common-errors.txt renamed to source/common-errors.txt

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
*************
1+
.. _ruby-common-errors:
2+
3+
=============
24
Common Errors
3-
*************
5+
=============
46

57
.. default-domain:: mongodb
68

@@ -12,7 +14,7 @@ Common Errors
1214

1315

1416
No Server is Available Matching Preference
15-
==========================================
17+
------------------------------------------
1618

1719
If you receive the following error:
1820

@@ -39,14 +41,13 @@ this, you can try the following:
3941
host list.
4042
- If you are connecting to Atlas, ensure that the firewall rules are configured
4143
correctly. See the documentation on `Cluster Security <https://www.mongodb.com/docs/atlas/setup-cluster-security/>`_.
42-
- If your application uses a forking web server, see the documentation on :ref:`Forking <forking>`.
4344

4445
See more on this issue here:
4546
`RUBY-1281 <https://jira.mongodb.org/browse/RUBY-1281>`_.
4647

4748

4849
``OperationFailure`` When Reading ``local`` Database With Auth On
49-
=================================================================
50+
-----------------------------------------------------------------
5051

5152
If you are getting the following error when trying to read the ``local`` database:
5253

@@ -66,7 +67,7 @@ You can find more information about this issue here:
6667

6768

6869
``SocketTimeoutError`` and name resolution errors on EC2
69-
========================================================
70+
--------------------------------------------------------
7071

7172
Some users reported getting the following error:
7273

@@ -102,7 +103,7 @@ You can find more information about this issue here:
102103

103104

104105
``Mongo::Auth::Unauthorized`` User is Not Authorized to Access
105-
==============================================================
106+
--------------------------------------------------------------
106107

107108
Some users reported getting the following error:
108109

Diff for: source/connect/connection-options.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,4 @@ API Documentation
292292
-----------------
293293

294294
For more information about ``Mongo::Client`` options for the {+driver-short+},
295-
see the API documentation for `Mongo::Client <{+api-root+}/Mongo/Client.html>`__ .
295+
see the API documentation for :ruby-api:`Mongo::Client <Client.html>`.

Diff for: source/connect/connection-targets.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Atlas
2929
To connect to a MongoDB deployment on Atlas, include the following elements
3030
in your connection string:
3131

32-
- The URL of your Atlas cluster
33-
- Your MongoDB username
34-
- Your MongoDB password
32+
- URL of your Atlas cluster
33+
- MongoDB username
34+
- MongoDB password
3535

3636
Then, pass your connection string to the ``Mongo::Client`` constructor.
3737

@@ -128,4 +128,4 @@ API Documentation
128128
-----------------
129129

130130
To learn more about creating a ``Mongo::Client`` object with the {+driver-short+},
131-
see the API documentation for `Mongo::Client <{+api-root+}/Mongo/Client.html>`__ .
131+
see the API documentation for :ruby-api:`Mongo::Client <Client.html>` .

Diff for: source/connect/csot.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,5 +237,5 @@ API Documentation
237237
To learn more about using timeouts with the {+driver-short+}, see the following
238238
API documentation:
239239

240-
- `Mongo::Client <{+api-root+}/Mongo/Client.html>`__
241-
- `Mongo::Session <{+api-root+}/Mongo/Session.html>`__
240+
- :ruby-api:`Mongo::Client <Client.html>`
241+
- :ruby-api:`Mongo::Session <Session.html>`

Diff for: source/connect/mongoclient.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ A standard connection string includes the following components:
5656

5757
- Optional. Authentication credentials. If you include these, the client
5858
authenticates the user against the database specified in ``authSource``.
59-
For more information about the ``authSource`` connection option, see
60-
:ref:`ruby-auth`.
59+
For more information about the ``authSource`` connection option, see the
60+
:ref:`ruby-authentication-mechanisms` guide.
6161

6262
* - ``hostname[:port]``
6363

@@ -132,4 +132,4 @@ API Documentation
132132
-----------------
133133

134134
To learn more about creating a ``Mongo::Client`` object with the {+driver-short+},
135-
see the API documentation for `Mongo::Client. <{+api-root+}/Mongo/Client.html>`__
135+
see the API documentation for :ruby-api:`Mongo::Client. <Client.html>`

Diff for: source/connect/stable-api.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ API Documentation
113113
For more information about using the {+stable-api+} with the {+driver-short+}, see the
114114
following API documentation:
115115

116-
- `Mongo::Client <{+api-root+}/Mongo/Client.html>`__
116+
- :ruby-api:`Mongo::Client <Client.html>`

Diff for: source/connect/tls.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,5 @@ API Documentation
322322
For more information about any of the types and methods discussed in this guide,
323323
see the following API documentation:
324324

325-
- `Mongo::Client <{+api-root+}/Mongo/Client.html>`__
326-
- `tls_context_hooks <{+api-root+/Mongo.html#tls_context_hooks-class_method}>`__
325+
- :ruby-api:`Mongo::Client <Client.html>`
326+
- `tls_context_hooks <{+api-root+}Mongo.html#tls_context_hooks-class_method>`__

Diff for: source/data-formats.txt

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Data Formats
2323
:maxdepth: 1
2424

2525
Time Series Data </data-formats/time-series>
26+
BSON </data-formats/bson>
2627

2728
Overview
2829
--------
@@ -32,3 +33,4 @@ application. To learn how to work with these data formats, see the following
3233
sections:
3334

3435
- :ref:`ruby-time-series`: Learn how to create a time series collection and interact with time series data.
36+
- :ref:`ruby-bson-tutorial`: Learn how to work with BSON data by using the {+driver-short+}'s BSON library.

0 commit comments

Comments
 (0)