Skip to content

Commit aa24a1d

Browse files
DOCSP-31501 Fix 404 on CRUD read page (#219)
* DOCSP-31501 Fix 404 on CRUD read page * DOCSP-31501 updates for commenting out tabs that caused build errors
1 parent 43b4fcf commit aa24a1d

File tree

4 files changed

+37
-35
lines changed

4 files changed

+37
-35
lines changed

source/crud/read.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ See Also
8888
tabs:
8989
- id: python
9090
content: |
91-
The `PyMongo <https://pymongo.readthedocs.io/en/stable/>`__ documentation .
91+
The `PyMongo <https://pymongo.readthedocs.io/en/stable/>`__ documentation.
9292

9393
- id: nodejs
9494
content: |
95-
The :driver:`MongoDB Node.js Driver </docs/node/current>` documentation
95+
The :driver:`MongoDB Node.js Driver </node/current>` documentation.
9696

9797
- id: csharp
9898
content: |
99-
The :driver:`MongoDB C# Driver </docs/csharp>` documentation
99+
The :driver:`MongoDB C# Driver </csharp/current>` documentation.
100100

101101
- id: go
102102
content: |
103-
The :driver:`MongoDB Go Driver </docs/go/current>` documentation
103+
The :driver:`MongoDB Go Driver </go/current>` documentation.
104104

105105
- id: java-sync
106106
content: |
107-
The :driver:`MongoDB Java(Sync) Driver </docs/java/sync/current>` documentation
107+
The :driver:`MongoDB Java(Sync) Driver </java/sync/current>` documentation.
108108

109109
For other CRUD guides:
110110

source/includes/bind_db.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
:language: python
1010
:dedent: 0
1111

12-
- id: motor
13-
content: |
14-
15-
To access the ``test`` database:
16-
17-
.. code-block:: python
18-
19-
db = client.test
20-
2112
- id: go
2213
content: |
2314

@@ -53,3 +44,12 @@
5344
:caption: CrudRead.cs
5445
:language: csharp
5546
:dedent: 0
47+
48+
.. - id: motor
49+
content: |
50+
51+
To access the ``test`` database:
52+
53+
.. code-block:: python
54+
55+
db = client.test

source/includes/crud_read_find_final_noquery.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@
5353
map[_id:ObjectID("621ff30d2a3e781873fcb65c") hasRings:false mainAtmosphere:[] name:Mercury orderFromSun:1 surfaceTemperatureC:map[max:427 mean:67 min:-173]]
5454
...
5555

56-
- id: motor
57-
content: |
58-
59-
.. code-block:: python
60-
61-
{'_id': ObjectId('5adb4ee0aea650d05134bf62'), 'item': 'canvas', 'qty': 100, 'tags': ['cotton'], 'size': {'h': 28, 'w': 35.5, 'uom': 'cm'}}
62-
6356
- id: java-sync
6457
content: |
6558
Here is the complete code followed by sample output.
@@ -78,9 +71,6 @@
7871
{"_id": {"$oid": "621ff30d2a3e781873fcb65c"}, "name": "Mercury", "orderFromSun": 1, "hasRings": false, "mainAtmosphere": [], "surfaceTemperatureC": {"min": -173, "max": 427, "mean": 67}}
7972
...
8073

81-
82-
83-
8474
- id: nodejs
8575
content: |
8676

@@ -131,3 +121,14 @@
131121
'surfaceTemperatureC': {'min': -173, 'max': 427, 'mean': 67}
132122
},
133123
...
124+
125+
..
126+
- id: motor
127+
content: |
128+
129+
.. code-block:: python
130+
131+
{'_id': ObjectId('5adb4ee0aea650d05134bf62'), 'item':
132+
'canvas', 'qty': 100, 'tags': ['cotton'], 'size': {'h': 28,
133+
'w': 35.5, 'uom': 'cm'}}
134+

source/includes/iterate_all_noshellcursor.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
:linenos:
1919
:dedent: 0
2020

21-
- id: motor
22-
content: |
23-
24-
In the code snippet above you may have noticed the code that
25-
iterates the results and prints them to the command line:
26-
27-
.. code-block:: python
28-
29-
async for doc in cursor:
30-
print(doc)
31-
3221
- id: java-sync
3322
content: |
3423

@@ -67,3 +56,15 @@
6756
:language: csharp
6857
:dedent: 0
6958

59+
..
60+
- id: motor
61+
content: |
62+
63+
In the code snippet above you may have noticed the code that
64+
iterates the results and prints them to the command line:
65+
66+
.. code-block:: python
67+
68+
async for doc in cursor:
69+
print(doc)
70+

0 commit comments

Comments
 (0)