Skip to content

Commit 41b8bad

Browse files
author
Chris Cho
authored
Compact links in docs-ecosystem (#570)
* add script to compact links, apply to existing docs
1 parent 6cdfa7a commit 41b8bad

File tree

18 files changed

+123
-56
lines changed

18 files changed

+123
-56
lines changed

source/drivers/c.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ See `Installing the MongoDB C Driver (libmongoc) and BSON library (libbson)
4545
Connect to MongoDB Atlas
4646
------------------------
4747

48-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
48+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
4949

5050
.. code-block:: c
5151

@@ -103,6 +103,6 @@ How to get help
103103
- Join our `Google Group <http://groups.google.com/group/mongodb-user>`__.
104104
- Ask on `Stack Overflow <http://stackoverflow.com/questions/tagged/mongodb-c>`__.
105105
- Visit our `Support Channels <http://www.mongodb.org/about/support>`__.
106-
- File a bug or feature request on `JIRA <https://jira.mongodb.org/browse/CDRIVER>`__.
106+
- File a bug or feature request on :issue:`JIRA <CDRIVER>`.
107107

108108

source/drivers/csharp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ with MongoDB.
2424

2525
- `Usage Guide <http://mongodb.github.io/mongo-csharp-driver/?jmp=docs>`__
2626

27-
- `API Reference <http://api.mongodb.com/csharp/current?jmp=docs>`_
27+
- :api:`API Reference <csharp/current?jmp=docs>`
2828

2929
- :csharp-docs-latest:`Changelog </what_is_new/>`
3030

@@ -43,7 +43,7 @@ For more information, see :csharp-docs-latest:`Installation
4343
Connect to MongoDB Atlas
4444
------------------------
4545

46-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
46+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
4747

4848
.. code-block:: csharp
4949

source/drivers/cxx.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ See `Installing the mongocxx driver <http://mongocxx.org/mongocxx-v3/installatio
4040
Connect to MongoDB Atlas
4141
------------------------
4242

43-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
43+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
4444

4545
.. code-block:: cpp
4646

source/drivers/go.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ See `Installation <https://github.com/mongodb/mongo-go-driver#installation>`__
4747
Connect to MongoDB Atlas
4848
------------------------
4949

50-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
50+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
5151

5252
.. code-block:: go
5353

@@ -82,7 +82,7 @@ How to get help
8282
- Join our `Google Group <https://groups.google.com/forum/#!forum/mongodb-go-driver>`__.
8383
- Ask on `Stack Overflow <https://stackoverflow.com/questions/tagged/mongo-go>`__.
8484
- Visit our `Support Channels <https://docs.mongodb.com/manual/support/>`__.
85-
- See the `project JIRA <https://jira.mongodb.org/browse/GODRIVER>`__ to raise issues or request features.
85+
- See the :issue:`project JIRA <GODRIVER>` to raise issues or request features.
8686

8787

8888

source/drivers/java.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ management system. See
5454
Connect to MongoDB Atlas
5555
------------------------
5656

57-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
57+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
5858

5959
.. code-block:: java
6060

source/drivers/motor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Motor on all platforms:
5050
Connect to MongoDB Atlas
5151
------------------------
5252

53-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
53+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
5454

5555
.. code-block:: python
5656

source/drivers/node.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ This will download the MongoDB driver and add a dependency entry in your package
6363
Connect to MongoDB Atlas
6464
------------------------
6565

66-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the
67-
`Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
66+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the
67+
:atlas:`Atlas connection string </driver-connection>` for your cluster:
6868

6969
.. code-block:: javascript
7070

source/drivers/perl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ for more information.
6262
Connect to MongoDB Atlas
6363
------------------------
6464

65-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
65+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
6666

6767
.. code-block:: perl
6868

source/drivers/php.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Additional installation instructions may be found in the
7878
Connect to MongoDB Atlas
7979
------------------------
8080

81-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
81+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
8282

8383
.. code-block:: php
8484

source/drivers/pymongo.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Introduction
1717

1818
**PyMongo** is the recommended way to work with MongoDB from Python.
1919

20-
- `Tutorial <http://api.mongodb.com/python/current/tutorial.html>`__
20+
- :api:`Tutorial <python/current/tutorial.html>`
2121

22-
- `API Reference <http://api.mongodb.com/python/current/api/index.html>`_
22+
- :api:`API Reference <python/current/api/index.html>`
2323

24-
- `Changelog <http://api.mongodb.com/python/current/changelog.html>`__
24+
- :api:`Changelog <python/current/changelog.html>`
2525

2626
- `Source Code <https://github.com/mongodb/mongo-python-driver>`__
2727

@@ -62,14 +62,14 @@ To upgrade using pip:
6262
$ python -m pip install --upgrade pymongo
6363

6464

65-
See `Installation <http://api.mongodb.com/python/current/installation.html>`__ for more
65+
See :api:`Installation <python/current/installation.html>` for more
6666
ways to install.
6767

6868

6969
Connect to MongoDB Atlas
7070
------------------------
7171

72-
To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use the `Atlas connection string <https://docs.atlas.mongodb.com/driver-connection>`__ for your cluster:
72+
To connect to a :atlas:`MongoDB Atlas </>` cluster, use the :atlas:`Atlas connection string </driver-connection>` for your cluster:
7373

7474
.. code-block:: python
7575

0 commit comments

Comments
 (0)