Skip to content

Commit a319075

Browse files
authored
PYTHON-3197 Update docs.mongodb.com links in source, API & Reference documentation (#926)
1 parent fd512d5 commit a319075

22 files changed

+85
-85
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ database from Python. The ``bson`` package is an implementation of
1313
the `BSON format <http://bsonspec.org>`_ for Python. The ``pymongo``
1414
package is a native Python driver for MongoDB. The ``gridfs`` package
1515
is a `gridfs
16-
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_
16+
<https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst/>`_
1717
implementation on top of ``pymongo``.
1818

1919
PyMongo supports MongoDB 3.6, 4.0, 4.2, 4.4, and 5.0.
@@ -63,7 +63,7 @@ Security Vulnerabilities
6363

6464
If you’ve identified a security vulnerability in a driver or any other
6565
MongoDB project, please report it according to the `instructions here
66-
<http://docs.mongodb.org/manual/tutorial/create-a-vulnerability-report>`_.
66+
<https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report/>`_.
6767

6868
Installation
6969
============

doc/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interacting with MongoDB. :mod:`bson` is an implementation of the
66
`BSON format <http://bsonspec.org>`_, :mod:`pymongo` is a
77
full-featured driver for MongoDB, and :mod:`gridfs` is a set of tools
88
for working with the `GridFS
9-
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_ storage
9+
<https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst/>`_ storage
1010
specification.
1111

1212
.. toctree::

doc/changelog.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ Deprecations
376376
.. _PYTHON-2466: https://jira.mongodb.org/browse/PYTHON-2466
377377
.. _PYTHON-1690: https://jira.mongodb.org/browse/PYTHON-1690
378378
.. _PYTHON-2472: https://jira.mongodb.org/browse/PYTHON-2472
379-
.. _profile command: https://docs.mongodb.com/manual/reference/command/profile/
379+
.. _profile command: https://mongodb.com/docs/manual/reference/command/profile/
380380

381381
Issues Resolved
382382
...............
@@ -548,7 +548,7 @@ Unavoidable breaking changes:
548548
now always raises the following error:
549549
``InvalidOperation: GridFS does not support multi-document transactions``
550550

551-
.. _validate command: https://docs.mongodb.com/manual/reference/command/validate/
551+
.. _validate command: https://mongodb.com/docs/manual/reference/command/validate/
552552

553553
Issues Resolved
554554
...............
@@ -896,7 +896,7 @@ Deprecations:
896896
- Deprecated :meth:`pymongo.collection.Collection.count` and
897897
:meth:`pymongo.cursor.Cursor.count`. These two methods use the `count`
898898
command and `may or may not be accurate
899-
<https://docs.mongodb.com/manual/reference/command/count/#behavior>`_,
899+
<https://mongodb.com/docs/manual/reference/command/count/#behavior>`_,
900900
depending on the options used and connected MongoDB topology. Use
901901
:meth:`~pymongo.collection.Collection.count_documents` instead.
902902
- Deprecated the snapshot option of :meth:`~pymongo.collection.Collection.find`
@@ -1112,7 +1112,7 @@ Changes and Deprecations:
11121112
- Deprecated the MongoClient option `socketKeepAlive`. It now defaults to true
11131113
and disabling it is not recommended, see `does TCP keepalive time affect
11141114
MongoDB Deployments?
1115-
<https://docs.mongodb.com/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments->`_
1115+
<https://mongodb.com/docs/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments->`_
11161116
- Deprecated :meth:`~pymongo.collection.Collection.initialize_ordered_bulk_op`,
11171117
:meth:`~pymongo.collection.Collection.initialize_unordered_bulk_op`, and
11181118
:class:`~pymongo.bulk.BulkOperationBuilder`. Use
@@ -2408,15 +2408,15 @@ Important New Features:
24082408
- Support for mongos failover.
24092409
- A new :meth:`~pymongo.collection.Collection.aggregate` method to support
24102410
MongoDB's new `aggregation framework
2411-
<http://docs.mongodb.org/manual/applications/aggregation/>`_.
2411+
<http://mongodb.com/docs/manual/applications/aggregation/>`_.
24122412
- Support for legacy Java and C# byte order when encoding and decoding UUIDs.
24132413
- Support for connecting directly to an arbiter.
24142414

24152415
.. warning::
24162416

24172417
Starting with MongoDB 2.2 the getLastError command requires authentication
24182418
when the server's `authentication features
2419-
<http://www.mongodb.org/display/DOCS/Security+and+Authentication>`_ are enabled.
2419+
<https://www.mongodb.com/docs/manual/core/authentication/>`_ are enabled.
24202420
Changes to PyMongo were required to support this behavior change. Users of
24212421
authentication must upgrade to PyMongo 2.3 (or newer) for "safe" write operations
24222422
to function correctly.

doc/examples/aggregation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ you can add computed fields, create new virtual sub-objects, and extract
7474
sub-fields into the top-level of results.
7575

7676
.. seealso:: The full documentation for MongoDB's `aggregation framework
77-
<http://docs.mongodb.org/manual/applications/aggregation>`_
77+
<http://mongodb.com/docs/manual/applications/aggregation>`_

doc/examples/copydb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Versions of PyMongo before 3.0 included a ``copy_database`` helper method,
6767
but it has been removed.
6868

6969
.. _copyDatabase function in the mongo shell:
70-
http://docs.mongodb.org/manual/reference/method/db.copyDatabase/
70+
http://mongodb.com/docs/manual/reference/method/db.copyDatabase/
7171

7272
.. _Copy a Database:
7373
https://www.mongodb.com/docs/database-tools/mongodump/#std-label-mongodump-example-copy-clone-database

doc/examples/high_availability.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ High Availability and PyMongo
44
PyMongo makes it easy to write highly available applications whether
55
you use a `single replica set <http://dochub.mongodb.org/core/rs>`_
66
or a `large sharded cluster
7-
<http://www.mongodb.org/display/DOCS/Sharding+Introduction>`_.
7+
<https://www.mongodb.com/docs/manual/sharding/>`_.
88

99
Connecting to a Replica Set
1010
---------------------------
@@ -14,7 +14,7 @@ PyMongo makes working with `replica sets
1414
replica set and show how to handle both initialization and normal
1515
connections with PyMongo.
1616

17-
.. seealso:: The MongoDB documentation on `replication <https://dochub.mongodb.org/core/rs>`_.
17+
.. seealso:: The MongoDB documentation on `replication <http://dochub.mongodb.org/core/rs>`_.
1818

1919
Starting a Replica Set
2020
~~~~~~~~~~~~~~~~~~~~~~
@@ -261,7 +261,7 @@ attributes:
261261
**Tag sets**:
262262

263263
Replica-set members can be `tagged
264-
<http://www.mongodb.org/display/DOCS/Data+Center+Awareness>`_ according to any
264+
<https://www.mongodb.com/docs/manual/data-center-awareness/>`_ according to any
265265
criteria you choose. By default, PyMongo ignores tags when
266266
choosing a member to read from, but your read preference can be configured with
267267
a ``tag_sets`` parameter. ``tag_sets`` must be a list of dictionaries, each
@@ -308,7 +308,7 @@ milliseconds of the closest member's ping time.
308308
replica set *through* a mongos. The equivalent is the localThreshold_ command
309309
line option.
310310

311-
.. _localThreshold: https://docs.mongodb.com/manual/reference/program/mongos/#std-option-mongos.--localThreshold
311+
.. _localThreshold: https://mongodb.com/docs/manual/reference/program/mongos/#std-option-mongos.--localThreshold
312312

313313
.. _health-monitoring:
314314

doc/examples/server_selection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ to prefer servers running on ``localhost``.
1919
from pymongo import MongoClient
2020

2121

22-
.. _server selection algorithm: https://docs.mongodb.com/manual/core/read-preference-mechanics/
22+
.. _server selection algorithm: https://mongodb.com/docs/manual/core/read-preference-mechanics/
2323

2424

2525
Example: Selecting Servers Running on ``localhost``
@@ -105,4 +105,4 @@ list of known hosts. As an example, for a 3-member replica set with a
105105
all available secondaries.
106106

107107

108-
.. _server selection algorithm: https://docs.mongodb.com/manual/core/read-preference-mechanics/
108+
.. _server selection algorithm: https://mongodb.com/docs/manual/core/read-preference-mechanics/

doc/examples/tailable.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Tailable Cursors
33

44
By default, MongoDB will automatically close a cursor when the client has
55
exhausted all results in the cursor. However, for `capped collections
6-
<https://docs.mongodb.org/manual/core/capped-collections/>`_ you may
6+
<https://mongodb.com/docs/manual/core/capped-collections/>`_ you may
77
use a `tailable cursor
8-
<https://docs.mongodb.com/manual/core/tailable-cursors/>`_
8+
<https://mongodb.com/docs/manual/core/tailable-cursors/>`_
99
that remains open after the client exhausts the results in the initial cursor.
1010

1111
The following is a basic example of using a tailable cursor to tail the oplog

doc/examples/tls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TLS/SSL and PyMongo
33

44
PyMongo supports connecting to MongoDB over TLS/SSL. This guide covers the
55
configuration options supported by PyMongo. See `the server documentation
6-
<http://docs.mongodb.org/manual/tutorial/configure-ssl/>`_ to configure
6+
<http://mongodb.com/docs/manual/tutorial/configure-ssl/>`_ to configure
77
MongoDB.
88

99
.. warning:: Industry best practices recommend, and some regulations require,

doc/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ when it is serialized to BSON and used as a query. Thus you can create a
314314
subdocument that exactly matches the subdocument in the collection.
315315

316316
.. seealso:: `MongoDB Manual entry on subdocument matching
317-
<https://docs.mongodb.com/manual/tutorial/query-embedded-documents/>`_.
317+
<https://mongodb.com/docs/manual/tutorial/query-embedded-documents/>`_.
318318

319319
What does *CursorNotFound* cursor id not valid at server mean?
320320
--------------------------------------------------------------
@@ -468,7 +468,7 @@ How can I use something like Python's ``json`` module to encode my documents to
468468
-------------------------------------------------------------------------------------
469469
:mod:`~bson.json_util` is PyMongo's built in, flexible tool for using
470470
Python's :mod:`json` module with BSON documents and `MongoDB Extended JSON
471-
<https://docs.mongodb.com/manual/reference/mongodb-extended-json/>`_. The
471+
<https://mongodb.com/docs/manual/reference/mongodb-extended-json/>`_. The
472472
:mod:`json` module won't work out of the box with all documents from PyMongo
473473
as PyMongo supports some special types (like :class:`~bson.objectid.ObjectId`
474474
and :class:`~bson.dbref.DBRef`) that are not supported in JSON.

0 commit comments

Comments
 (0)