Skip to content

Commit 087950d

Browse files
authored
PYTHON-3164 Outdated link from PyMongo docs to community forum (#895)
1 parent 225d131 commit 087950d

19 files changed

+54
-38
lines changed

.github/workflows/test-python.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,21 @@ jobs:
6565
run: |
6666
mypy --install-types --non-interactive bson gridfs tools pymongo
6767
mypy --install-types --non-interactive --disable-error-code var-annotated --disable-error-code attr-defined --disable-error-code union-attr --disable-error-code assignment --disable-error-code no-redef --disable-error-code index --allow-redefinition --allow-untyped-globals --exclude "test/mypy_fails/*.*" test
68+
69+
linkcheck:
70+
name: Check Links
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v2
74+
- uses: actions/setup-python@v2
75+
with:
76+
cache: 'pip'
77+
cache-dependency-path: 'setup.py'
78+
- name: Install dependencies
79+
run: |
80+
python -m pip install -U pip
81+
python -m pip install sphinx
82+
- name: Check links
83+
run: |
84+
cd doc
85+
make linkcheck

bson/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Binary(bytes):
208208
- `data`: the binary data to represent. Can be any bytes-like type
209209
that implements the buffer protocol.
210210
- `subtype` (optional): the `binary subtype
211-
<http://bsonspec.org/#/specification>`_
211+
<https://bsonspec.org/spec.html>`_
212212
to use
213213
214214
.. versionchanged:: 3.9

doc/atlas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Connections to Atlas require TLS/SSL.
3535

3636
You can read more about TLS versions and their security implications here:
3737

38-
`<https://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet#Rule_-_Only_Support_Strong_Protocols>`_
38+
`<https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html#only-support-strong-protocols>`_
3939

4040
.. _python.org: https://www.python.org/downloads/
4141
.. _homebrew: https://brew.sh/

doc/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ Changes and Deprecations:
10721072
- Deprecated the MongoClient option `socketKeepAlive`. It now defaults to true
10731073
and disabling it is not recommended, see `does TCP keepalive time affect
10741074
MongoDB Deployments?
1075-
<https://docs.mongodb.com/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments>`_
1075+
<https://docs.mongodb.com/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments->`_
10761076
- Deprecated :meth:`~pymongo.collection.Collection.initialize_ordered_bulk_op`,
10771077
:meth:`~pymongo.collection.Collection.initialize_unordered_bulk_op`, and
10781078
:class:`~pymongo.bulk.BulkOperationBuilder`. Use

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080
# A list of ignored prefixes for module index sorting.
8181
# modindex_common_prefix = []
8282

83+
# Options for link checking
84+
# The anchors on the rendered markdown page are created after the fact,
85+
# so this link results in a 404.
86+
linkcheck_ignore = [
87+
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check"
88+
]
89+
8390
# -- Options for extensions ----------------------------------------------------
8491
autoclass_content = "init"
8592

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-discovery-and-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.rst#requesting-an-immediate-check
110110

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

doc/examples/high_availability.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: http://docs.mongodb.org/manual/reference/mongos/#cmdoption--localThreshold
311+
.. _localThreshold: https://docs.mongodb.com/manual/reference/program/mongos/#std-option-mongos.--localThreshold
312312

313313
.. _health-monitoring:
314314

doc/examples/mod_wsgi.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PyMongo and mod_wsgi
44
====================
55

6-
To run your application under `mod_wsgi <http://code.google.com/p/modwsgi/>`_,
6+
To run your application under `mod_wsgi <https://github.com/GrahamDumpleton/mod_wsgi/>`_,
77
follow these guidelines:
88

99
* Run ``mod_wsgi`` in daemon mode with the ``WSGIDaemonProcess`` directive.
@@ -48,9 +48,9 @@ interpreter.
4848

4949
Python C extensions in general have issues running in multiple
5050
Python sub interpreters. These difficulties are explained in the documentation for
51-
`Py_NewInterpreter <http://docs.python.org/2/c-api/init.html#Py_NewInterpreter>`_
51+
`Py_NewInterpreter <https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter>`_
5252
and in the `Multiple Python Sub Interpreters
53-
<https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters>`_
53+
<https://modwsgi.readthedocs.io/en/master/user-guides/application-issues.html#multiple-python-sub-interpreters>`_
5454
section of the ``mod_wsgi`` documentation.
5555

5656
Beginning with PyMongo 2.7, the C extension for BSON detects when it is running

doc/examples/tailable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ By default, MongoDB will automatically close a cursor when the client has
55
exhausted all results in the cursor. However, for `capped collections
66
<https://docs.mongodb.org/manual/core/capped-collections/>`_ you may
77
use a `tailable cursor
8-
<https://docs.mongodb.org/manual/reference/glossary/#term-tailable-cursor>`_
8+
<https://docs.mongodb.com/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
@@ -32,7 +32,7 @@ MongoDB.
3232

3333
You can read more about TLS versions and their security implications here:
3434

35-
`<https://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet#Rule_-_Only_Support_Strong_Protocols>`_
35+
`<https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html#only-support-strong-protocols>`_
3636

3737
.. _python.org: https://www.python.org/downloads/
3838
.. _homebrew: https://brew.sh/

0 commit comments

Comments
 (0)