Skip to content

Commit 127140a

Browse files
authored
DOCSP-48375 ToC reorg part one (#1035)
1 parent 7f87ce0 commit 127140a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1466
-428
lines changed

config/redirects

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,63 @@ raw: ${prefix}/stable -> ${base}/current/
2323
[*-v5.5]: ${prefix}/${version}/fundamentals/run-command/ -> ${base}/${version}/usage-examples/command/
2424
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/change-a-document/ -> ${base}/${version}/fundamentals/crud/write-operations/modify/
2525

26-
[*-v6.0): ${prefix}/${version}/fundamentals/connection/socks/ -> ${base}/${version}/
26+
[*-v6.0)]: ${prefix}/${version}/fundamentals/connection/socks/ -> ${base}/${version}/
27+
28+
[*-master]: ${prefix}/${version}/quick-start/download-and-install/ -> ${base}/${version}/get-started/
29+
[*-master]: ${prefix}/${version}/quick-start/create-a-deployment/ -> ${base}/${version}/get-started/
30+
[*-master]: ${prefix}/${version}/quick-start/create-a-connection-string/ -> ${base}/${version}/get-started/
31+
[*-master]: ${prefix}/${version}/quick-start/connect-to-mongodb/ -> ${base}/${version}/get-started/
32+
[*-master]: ${prefix}/${version}/quick-start/next-steps/ -> ${base}/${version}/get-started/
33+
[*-master]: ${prefix}/${version}/fundamentals/connection/ -> ${base}/${version}/connect/
34+
[*-master]: ${prefix}/${version}/fundamentals/connection/connect/ -> ${base}/${version}/connect/mongoclient/
35+
[*-master]: ${prefix}/${version}/fundamentals/connection/connection-options/ -> ${base}/${version}/connect/connection-options/
36+
[*-master]: ${prefix}/${version}/connection-troubleshooting/ -> ${base}/${version}/connect/connection-troubleshooting/
37+
[*-master]: ${prefix}/${version}/fundamentals/connection/network-compression/ -> ${base}/${version}/connect/connection-options/network-compression/
38+
[*-master]: ${prefix}/${version}/fundamentals/connection/csot/ -> ${base}/${version}/connect/connection-options/csot/
39+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/bulk/ -> ${base}/${version}/crud/bulk-write/
40+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/insert/ -> ${base}/${version}/crud/insert/
41+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/upsert/ -> ${base}/${version}/crud/update/
42+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/delete/ -> ${base}/${version}/crud/delete/
43+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/ -> ${base}/${version}/crud/query/
44+
[*-master]: ${prefix}/${version}/fundamentals/crud/query-document/ -> ${base}/${version}/crud/query/query-document/
45+
[*-master]: ${prefix}/${version}/fundamentals/crud/compound-operations/ -> ${base}/${version}/crud/compound-operations/
46+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-write-pref/ -> ${base}/${version}/crud/read-write-pref/
47+
[*-master]: ${prefix}/${version}/fundamentals/transactions/ -> ${base}/${version}/crud/transactions/
48+
[*-master]: ${prefix}/${version}/fundamentals/gridfs/ -> ${base}/${version}/crud/gridfs/
49+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/retrieve/ -> ${base}/${version}/crud/query/retrieve/
50+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/project/ -> ${base}/${version}/crud/query/project/
51+
[*-master]: ${prefix}/${version}/fundamentals/usage-examples/count/ -> ${base}/${version}/crud/query/count/
52+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/distinct/ -> ${base}/${version}/crud/query/distinct/
53+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/cursor/ -> ${base}/${version}/crud/query/cursor/
54+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/geo/ -> ${base}/${version}/crud/query/geo/
55+
[*-master]: ${prefix}/${version}/fundamentals/crud/time-series/ -> ${base}/${version}/data-formats/time-series/
56+
[*-master]: ${prefix}/${version}/fundamentals/bson/ -> ${base}/${version}/data-formats/bson/
57+
[*-master]: ${prefix}/${version}/fundamentals/indexes/ -> ${base}/${version}/indexes/
58+
[*-master]: ${prefix}/${version}/fundamentals/run-command/ -> ${base}/${version}/run-command/
59+
[*-master]: ${prefix}/${version}/fundamentals/monitoring/ -> ${base}/${version}/monitoring-and-logging/monitoring/
60+
[*-master]: ${prefix}/${version}/fundamentals/logging/ -> ${base}/${version}/monitoring-and-logging/logging/
61+
[*-master]: ${prefix}/${version}/usage-examples/changeStream -> ${base}/monitoring-and-logging/change-streams/
62+
[*-master]: ${prefix}/${version}/fundamentals/aggregation/ -> ${base}/${version}/aggregation/
63+
[*-master]: ${prefix}/${version}/aggregation-tutorials/ -> ${base}/aggregation/
64+
[*-master]: ${prefix}/${version}/aggregation-tutorials/filtered-subset/ -> ${base}/aggregation/filtered-subset/
65+
[*-master]: ${prefix}/${version}/aggregation-tutorials/group-total/ -> ${base}/aggregation/group-total/
66+
[*-master]: ${prefix}/${version}/aggregation-tutorials/multi-field-join/ -> ${base}/aggregation/multi-field-join/
67+
[*-master]: ${prefix}/${version}/aggregation-tutorials/one-to-one-join/ -> ${base}/aggregation/one-to-one-join/
68+
[*-master]: ${prefix}/${version}/aggregation-tutorials/unpack-arrays/ -> ${base}/aggregation/unpack-arrays/
69+
[*-master]: ${prefix}/${version}/fundamentals/authentication -> ${base}/security/authentication/
70+
[*-master]: ${prefix}/${version}/fundamentals/authentication/mechanisms/ -> ${base}/security/authentication/mechanisms/
71+
[*-master]: ${prefix}/${version}/fundamentals/authentication/enterprise-mechanisms/ -> ${base}/security/authentication/enterprise-mechanisms/
72+
[*-master]: ${prefix}/${version}/fundamentals/encrypt-fields/ -> ${base}/security/encrypt-fields/
73+
[*-master]: ${prefix}/${version}/fundamentals/connection/tls/ -> ${base}/security/tls/
74+
[*-master]: ${prefix}/${version}/fundamentals/connection/socks/ -> ${base}/security/socks/
75+
[*-master]: ${prefix}/${version}/fundamentals/typescript/ -> ${base}/typescript/
76+
[*-master]: ${prefix}/${version}/whats-new/ -> ${base}/reference/release-notes/
77+
[*-master]: ${prefix}/${version}/compatibility/ -> ${base}/reference/compatibility/
78+
[*-master]: ${prefix}/${version}/upgrade/ -> ${base}/reference/upgrade/
79+
[*-master]: ${prefix}/${version}/quick-reference/ -> ${base}/reference/quick-reference/
80+
[*-master]: ${prefix}/${version}/fundamentals/collations/ -> ${base}/crud/configure/
81+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/text/ -> ${base}/crud/query/text/
82+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/modify/ -> ${base}/crud/update/modify/
83+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/embedded-arrays/ -> ${base}/crud/update/embedded-arrays/
84+
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/pkFactory/ -> ${base}/crud/pkFactory/
85+

snooty.toml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ intersphinx = [
77
]
88

99
toc_landing_pages = [
10-
"/fundamentals/authentication",
11-
"/fundamentals",
12-
"/fundamentals/connection",
13-
"/fundamentals/crud",
14-
"/fundamentals/bson",
15-
"/usage-examples",
16-
"/quick-start",
10+
"/get-started",
11+
"/connect",
12+
"/aggregation",
13+
"/aggregation/aggregation-tutorials",
14+
"/security",
15+
"/security/authentication",
1716
"/aggregation-tutorials",
17+
"/data-formats",
18+
"connect/connection-options",
19+
"crud",
20+
"/crud/query",
21+
"crud/update",
22+
"monitoring-and-logging"
1823
]
1924
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
2025

source/aggregation-tutorials.txt

Lines changed: 0 additions & 123 deletions
This file was deleted.

source/fundamentals/aggregation.txt renamed to source/aggregation.txt

Lines changed: 116 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,27 @@
55
Aggregation
66
===========
77

8+
.. facet::
9+
:name: genre
10+
:values: reference
11+
12+
.. meta::
13+
:keywords: node.js, code example, runnable app
14+
815
.. contents:: On this page
916
:local:
1017
:backlinks: none
1118
:depth: 2
1219
:class: singlecol
1320

21+
.. toctree::
22+
23+
Filtered Subset </aggregation/filtered-subset/>
24+
Group & Total </aggregation/group-total/>
25+
Unpack Arrays & Group </aggregation/unpack-arrays/>
26+
One-to-One Join </aggregation/one-to-one-join/>
27+
Multi-Field Join </aggregation/multi-field-join/>
28+
1429
.. _nodejs-aggregation-overview:
1530

1631
Overview
@@ -98,7 +113,7 @@ database:
98113

99114
.. tip::
100115

101-
For more information on connecting to your MongoDB deployment, see the :doc:`Connection Guide </fundamentals/connection>`.
116+
For more information on connecting to your MongoDB deployment, see the :doc:`Connection Guide </connect>`.
102117

103118
Aggregation Example
104119
~~~~~~~~~~~~~~~~~~~
@@ -131,6 +146,106 @@ This example produces the following output:
131146

132147
For more information, see the `aggregate() API documentation <{+api+}/classes/Collection.html#aggregate>`__.
133148

149+
.. _node-aggregation-tutorials-landing:
150+
.. _node-aggregation-tutorials:
151+
152+
Aggregation Tutorials
153+
---------------------
154+
155+
Aggregation tutorials provide detailed explanations of common
156+
aggregation tasks in a step-by-step format. The tutorials are adapted
157+
from examples in the `Practical MongoDB Aggregations book
158+
<https://www.practical-mongodb-aggregations.com/>`__ by Paul Done.
159+
160+
Each tutorial includes the following sections:
161+
162+
- **Introduction**, which describes the purpose and common use cases of the
163+
aggregation type. This section also describes the example and desired
164+
outcome that the tutorial demonstrates.
165+
166+
- **Before You Get Started**, which describes the necessary databases,
167+
collections, and sample data that you must have before building the
168+
aggregation pipeline and performing the aggregation.
169+
170+
- **Tutorial**, which describes how to build and run the aggregation
171+
pipeline. This section describes each stage of the completed
172+
aggregation tutorial, and then explains how to run and interpret the
173+
output of the aggregation.
174+
175+
At the end of each aggregation tutorial, you can find a link to a fully
176+
runnable Node.js code file that you can run in your environment.
177+
178+
.. tip::
179+
180+
To learn more about performing aggregations, see the
181+
:ref:`node-aggregation` guide.
182+
183+
.. _node-agg-tutorial-template-app:
184+
185+
Aggregation Template App
186+
~~~~~~~~~~~~~~~~~~~~~~~~
187+
188+
Before you begin following an aggregation tutorial, you must set up a
189+
new Node.js app. You can use this app to connect to a MongoDB
190+
deployment, insert sample data into MongoDB, and run the aggregation
191+
pipeline in each tutorial.
192+
193+
.. tip::
194+
195+
To learn how to install the driver and connect to MongoDB,
196+
see the :ref:`node-get-started-download-and-install` and
197+
:ref:`node-get-started-create-deployment` steps of the
198+
Quick Start guide.
199+
200+
Once you install the driver, create a file called
201+
``agg_tutorial.js``. Paste the following code in this file to create an
202+
app template for the aggregation tutorials:
203+
204+
.. literalinclude:: /includes/aggregation/template-app.js
205+
:language: javascript
206+
:copyable: true
207+
208+
.. important::
209+
210+
In the preceding code, read the code comments to find the sections of
211+
the code that you must modify for the tutorial you are following.
212+
213+
If you attempt to run the code without making any changes, you will
214+
encounter a connection error.
215+
216+
For every tutorial, you must replace the connection string placeholder with
217+
your deployment's connection string.
218+
219+
.. tip::
220+
221+
To learn how to locate your deployment's connection string, see the
222+
:ref:`node-get-started-connection-string` step of the Quick Start guide.
223+
224+
For example, if your connection string is
225+
``"mongodb+srv://mongodb-example:27017"``, your connection string assignment resembles
226+
the following:
227+
228+
.. code-block:: javascript
229+
:copyable: false
230+
231+
const uri = "mongodb+srv://mongodb-example:27017";
232+
233+
To run the completed file after you modify the template for a
234+
tutorial, run the following command in your shell:
235+
236+
.. code-block:: bash
237+
238+
node agg_tutorial.js
239+
240+
Available Tutorials
241+
~~~~~~~~~~~~~~~~~~~
242+
243+
- :ref:`node-aggregation-filtered-subset`
244+
- :ref:`node-aggregation-group-total`
245+
- :ref:`node-aggregation-arrays`
246+
- :ref:`node-aggregation-one-to-one`
247+
- :ref:`node-aggregation-multi-field`
248+
134249
Additional Examples
135250
~~~~~~~~~~~~~~~~~~~
136251

source/fundamentals/collations.txt renamed to source/archive-reference-files/collations.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. _node-fundamentals-collations:
2+
.. _node-collations:
23

34
==========
45
Collations
@@ -55,7 +56,7 @@ Usage
5556
-----
5657

5758
You can specify a collation when you create a new collection or new index. You
58-
can also specify a collation for :doc:`CRUD operations </fundamentals/crud>`
59+
can also specify a collation for :doc:`CRUD operations </crud>`
5960
and aggregations.
6061

6162
When you create a new collection with a collation, you define the default

0 commit comments

Comments
 (0)