Skip to content

Commit 5efe0b1

Browse files
committed
PYTHON-2112 Change api.mongodb.com to pymongo.readthedocs.io
1 parent 923e83c commit 5efe0b1

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

CONTRIBUTING.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Contributing to PyMongo
22
=======================
33

44
PyMongo has a large `community
5-
<http://api.mongodb.org/python/current/contributors.html>`_ and
5+
<https://pymongo.readthedocs.io/en/stable/contributors.html>`_ and
66
contributions are always encouraged. Contributions can be as simple as
77
minor tweaks to the documentation. Please read these guidelines before
88
sending a pull request.
@@ -41,7 +41,7 @@ General Guidelines
4141
Documentation
4242
-------------
4343

44-
To contribute to the `API documentation <http://api.mongodb.org/python/current/>`_
44+
To contribute to the `API documentation <https://pymongo.readthedocs.io/en/stable/>`_
4545
just make your changes to the inline documentation of the appropriate
4646
`source code <https://github.com/mongodb/mongo-python-driver>`_ or `rst file
4747
<https://github.com/mongodb/mongo-python-driver/tree/master/doc>`_ in a

README.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ Here's a basic example (for more see the *examples* section of the docs):
204204
Documentation
205205
=============
206206

207-
You will need sphinx_ installed to generate the
208-
documentation. Documentation can be generated by running **python
207+
Documentation is available at [pymongo.readthedocs.io](https://pymongo.readthedocs.io/en/stable/).
208+
209+
To build the documentation, you will need to install sphinx_.
210+
Documentation can be generated by running **python
209211
setup.py doc**. Generated documentation can be found in the
210212
*doc/build/html/* directory.
211213

pymongo/topology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def open(self):
155155
warnings.warn(
156156
"MongoClient opened before fork. Create MongoClient only "
157157
"after forking. See PyMongo's documentation for details: "
158-
"http://api.mongodb.org/python/current/faq.html#"
158+
"https://pymongo.readthedocs.io/en/stable/faq.html#"
159159
"is-pymongo-fork-safe")
160160
with self._lock:
161161
# Reset the session pool to avoid duplicate sessions in

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class custom_build_ext(build_ext):
247247
248248
Please see the installation docs for solutions to build issues:
249249
250-
http://api.mongodb.org/python/current/installation.html
250+
https://pymongo.readthedocs.io/en/stable/installation.html
251251
252252
Here are some hints for popular operating systems:
253253
@@ -269,15 +269,15 @@ class custom_build_ext(build_ext):
269269
from binary wheels available on pypi. If you must install from
270270
source read the documentation here:
271271
272-
https://api.mongodb.com/python/current/installation.html#installing-from-source-on-windows
272+
https://pymongo.readthedocs.io/en/stable/installation.html#installing-from-source-on-windows
273273
274274
If you are seeing this message on macOS / OSX please install PyMongo
275275
using pip. Modern versions of pip will install PyMongo from binary
276276
wheels available on pypi. If wheels are not available for your version
277277
of macOS / OSX, or you must install from source read the documentation
278278
here:
279279
280-
http://api.mongodb.org/python/current/installation.html#osx
280+
https://pymongo.readthedocs.io/en/stable/installation.html#osx
281281
********************************************************************
282282
"""
283283

0 commit comments

Comments
 (0)