Skip to content

Commit 351196b

Browse files
authored
PYTHON-4813 Update specification documentation links (mongodb#1977)
1 parent 2332d69 commit 351196b

20 files changed

+48
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The PyMongo distribution contains tools for interacting with MongoDB
1111
database from Python. The `bson` package is an implementation of the
1212
[BSON format](http://bsonspec.org) for Python. The `pymongo` package is
1313
a native Python driver for MongoDB. The `gridfs` package is a
14-
[gridfs](https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst/)
14+
[gridfs](https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.md/)
1515
implementation on top of `pymongo`.
1616

1717
PyMongo supports MongoDB 4.0, 4.2, 4.4, 5.0, 6.0, 7.0, and 8.0.

bson/json_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
when :const:`CANONICAL_JSON_OPTIONS` or :const:`LEGACY_JSON_OPTIONS` is
2323
provided, respectively.
2424
25-
.. _Extended JSON: https://github.com/mongodb/specifications/blob/master/source/extended-json.rst
25+
.. _Extended JSON: https://github.com/mongodb/specifications/blob/master/source/extended-json/extended-json.md
2626
2727
Example usage (deserialization):
2828

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-
<https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst/>`_ storage
9+
<https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.md/>`_ storage
1010
specification.
1111

1212
.. toctree::

doc/changelog.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ See the `PyMongo 4.0 release notes in JIRA`_ for the list of resolved issues
10271027
in this release.
10281028

10291029
.. _PyMongo 4.0 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=18463
1030-
.. _DBRef specification: https://github.com/mongodb/specifications/blob/5a8c8d7/source/dbref.rst
1030+
.. _DBRef specification: https://github.com/mongodb/specifications/blob/master/source/dbref/dbref.md
10311031

10321032
Changes in Version 3.13.0 (2022/11/01)
10331033
--------------------------------------
@@ -1562,7 +1562,7 @@ Unavoidable breaking changes:
15621562
bumped to 1.16.0. This is a breaking change for applications that use
15631563
PyMongo's SRV support with a version of ``dnspython`` older than 1.16.0.
15641564

1565-
.. _URI options specification: https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.rst
1565+
.. _URI options specification: https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.md
15661566

15671567

15681568
Issues Resolved
@@ -1586,7 +1586,7 @@ Changes in Version 3.8.0 (2019/04/22)
15861586
must upgrade to PyPy3.5+.
15871587

15881588
- :class:`~bson.objectid.ObjectId` now implements the `ObjectID specification
1589-
version 0.2 <https://github.com/mongodb/specifications/blob/master/source/objectid.rst>`_.
1589+
version 0.2 <https://github.com/mongodb/specifications/blob/master/source/bson-objectid/objectid.md>`_.
15901590
- For better performance and to better follow the GridFS spec,
15911591
:class:`~gridfs.grid_file.GridOut` now uses a single cursor to read all the
15921592
chunks in the file. Previously, each chunk in the file was queried
@@ -1948,7 +1948,7 @@ Highlights include:
19481948
:class:`~pymongo.operations.UpdateOne`, and
19491949
:class:`~pymongo.operations.UpdateMany`.
19501950
- Implemented the `MongoDB Extended JSON
1951-
<https://github.com/mongodb/specifications/blob/master/source/extended-json.rst>`_
1951+
<https://github.com/mongodb/specifications/blob/master/source/extended-json/extended-json.md>`_
19521952
specification.
19531953
- :class:`~bson.decimal128.Decimal128` now works when cdecimal is installed.
19541954
- PyMongo is now tested against a wider array of operating systems and CPU

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
# wiki.centos.org has been flakey.
8686
# sourceforge.net is giving a 403 error, but is still accessible from the browser.
8787
linkcheck_ignore = [
88-
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check",
88+
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check",
8989
"https://github.com/mongodb/libmongocrypt/blob/master/bindings/python/README.rst#installing-from-source",
9090
r"https://wiki.centos.org/[\w/]*",
9191
r"http://sourceforge.net/",

doc/developer/periodic_executor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Thus the current design of periodic executors is surprisingly simple: they
106106
do a simple ``time.sleep`` for a half-second, check if it is time to wake or
107107
terminate, and sleep again.
108108

109-
.. _Server Discovery And Monitoring Spec: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check
109+
.. _Server Discovery And Monitoring Spec: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check
110110

111111
.. _PYTHON-863: https://jira.mongodb.org/browse/PYTHON-863
112112

doc/examples/uuid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Finally, the same UUID would historically be serialized by the Java driver as::
8484
.. note:: For in-depth information about the the byte-order historically
8585
used by different drivers, see the `Handling of Native UUID Types
8686
Specification
87-
<https://github.com/mongodb/specifications/blob/master/source/uuid.rst>`_.
87+
<https://github.com/mongodb/specifications/blob/master/source/bson-binary-uuid/uuid.md>`_.
8888

8989
This difference in the byte-order of UUIDs encoded by different drivers can
9090
result in highly unintuitive behavior in some scenarios. We detail two such

doc/migrate-to-pymongo4.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Renamed URI options
118118

119119
Several deprecated URI options have been renamed to the standardized
120120
option names defined in the
121-
`URI options specification <https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.rst>`_.
121+
`URI options specification <https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.md>`_.
122122
The old option names and their renamed equivalents are summarized in the table
123123
below. Some renamed options have different semantics from the option being
124124
replaced as noted in the 'Migration Notes' column.
@@ -965,7 +965,7 @@ correct type. Otherwise the document is returned as normal. Previously, any
965965
subdocument containing a ``$ref`` field would be decoded as a
966966
:class:`~bson.dbref.DBRef`.
967967

968-
.. _DBRef specification: https://github.com/mongodb/specifications/blob/5a8c8d7/source/dbref.rst
968+
.. _DBRef specification: https://github.com/mongodb/specifications/blob/master/source/dbref/dbref.md
969969

970970
Encoding a UUID raises an error by default
971971
..........................................

pymongo/asynchronous/mongo_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __init__(
221221
<https://en.wikipedia.org/wiki/TXT_record>`_. See the
222222
`Initial DNS Seedlist Discovery spec
223223
<https://github.com/mongodb/specifications/blob/master/source/
224-
initial-dns-seedlist-discovery/initial-dns-seedlist-discovery.rst>`_
224+
initial-dns-seedlist-discovery/initial-dns-seedlist-discovery.md>`_
225225
for more details. Note that the use of SRV URIs implicitly enables
226226
TLS support. Pass tls=false in the URI to override.
227227
@@ -367,7 +367,7 @@ def __init__(
367367
:meth:`~pymongo.asynchronous.collection.AsyncCollection.aggregate` using the ``$out``
368368
pipeline operator and any operation with an unacknowledged write
369369
concern (e.g. {w: 0})). See
370-
https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.rst
370+
https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.md
371371
- `retryReads`: (boolean) Whether supported read operations
372372
executed within this AsyncMongoClient will be retried once after a
373373
network error. Defaults to ``True``.
@@ -394,7 +394,7 @@ def __init__(
394394
transient errors such as network failures, database upgrades, and
395395
replica set failovers. For an exact definition of which errors
396396
trigger a retry, see the `retryable reads specification
397-
<https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.rst>`_.
397+
<https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.md>`_.
398398
399399
- `compressors`: Comma separated list of compressors for wire
400400
protocol compression. The list is used to negotiate a compressor

pymongo/pool_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _metadata_env() -> dict[str, Any]:
216216
_MAX_METADATA_SIZE = 512
217217

218218

219-
# See: https://github.com/mongodb/specifications/blob/5112bcc/source/mongodb-handshake/handshake.rst#limitations
219+
# See: https://github.com/mongodb/specifications/blob/master/source/mongodb-handshake/handshake.md#limitations
220220
def _truncate_metadata(metadata: MutableMapping[str, Any]) -> None:
221221
"""Perform metadata truncation."""
222222
if len(bson.encode(metadata)) <= _MAX_METADATA_SIZE:

0 commit comments

Comments
 (0)