Skip to content

Commit 9192e14

Browse files
authored
DOCSP-46362 - TOC reorganization (#191)
1 parent a235231 commit 9192e14

Some content is hidden

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

74 files changed

+2458
-3031
lines changed

config/redirects

+62-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,68 @@ raw: ${prefix}/get-started/download-and-install/ -> ${base}/current/get-started/
1414
[*-master]: ${prefix}/${version}/security/enterprise-authentication/ -> ${base}/${version}/security/authentication/
1515
[*-master]: ${prefix}/${version}/faq/ -> ${base}/${version}/
1616
[*-master]: ${prefix}/${version}/connect/connection-pools/ -> ${base}/${version}/connect/connection-options/#connection-pools
17-
[v4.7-*]: ${prefix}/${version}/get-started/connect-to-mongodb -> ${base}/${version}/get-started/run-sample-query/
17+
[*-master]: ${prefix}/${version}/get-started/download-and-install/ -> ${base}/${version}/get-started/
18+
[*-master]: ${prefix}/${version}/get-started/create-a-deployment/ -> ${base}/${version}/get-started/
19+
[*-master]: ${prefix}/${version}/get-started/create-a-connection-string/ -> ${base}/${version}/get-started/
20+
[*-master]: ${prefix}/${version}/get-started/connect-to-mongodb/ -> ${base}/${version}/get-started/
21+
[*-master]: ${prefix}/${version}/get-started/next-steps/ -> ${base}/${version}/get-started/
22+
[*-master]: ${prefix}/${version}/connect/csot/ -> ${base}/${version}/connect/connection-options/csot/
23+
[*-master]: ${prefix}/${version}/connect/network-compression/ -> ${base}/${version}/connect/connection-options/network-compression/
24+
[*-master]: ${prefix}/${version}/connect/server-selection/ -> ${base}/${version}/connect/connection-options/server-selection/
25+
[*-master]: ${prefix}/${version}/connect/stable-api/ -> ${base}/${version}/connect/connection-options/stable-api/
26+
[*-master]: ${prefix}/${version}/connect/tls/ -> ${base}/${version}/security/tls/
27+
[*-master]: ${prefix}/${version}/write/bulk-write/ -> ${base}/${version}/crud/bulk-write/
28+
[*-master]: ${prefix}/${version}/databases-collections/#configure-read-and-write-operations/ -> ${base}/${version}/crud/configure/
29+
[*-master]: ${prefix}/${version}/write/delete/ -> ${base}/${version}/crud/delete/
30+
[*-master]: ${prefix}/${version}/write/gridfs/ -> ${base}/${version}/crud/gridfs/
31+
[*-master]: ${prefix}/${version}/write/insert/ -> ${base}/${version}/crud/insert/
32+
[*-master]: ${prefix}/${version}/write/transactions/ -> ${base}/${version}/crud/transactions/
33+
[*-master]: ${prefix}/${version}/write/update/ -> ${base}/${version}/crud/update/
34+
[*-master]: ${prefix}/${version}/write/replace/ -> ${base}/${version}/crud/update/replace/
35+
[*-master]: ${prefix}/${version}/read/ -> ${base}/${version}/crud/query/
36+
[*-master]: ${prefix}/${version}/read/count/ -> ${base}/${version}/crud/query/count/
37+
[*-master]: ${prefix}/${version}/read/cursors/ -> ${base}/${version}/crud/query/cursors/
38+
[*-master]: ${prefix}/${version}/read/distinct/ -> ${base}/${version}/crud/query/distinct/
39+
[*-master]: ${prefix}/${version}/read/retrieve/ -> ${base}/${version}/crud/query/find/
40+
[*-master]: ${prefix}/${version}/read/project/ -> ${base}/${version}/crud/query/project/
41+
[*-master]: ${prefix}/${version}/read/specify-documents-to-return/ -> ${base}/${version}/crud/query/specify-documents-to-return/
42+
[*-master]: ${prefix}/${version}/read/specify-a-query/ -> ${base}/${version}/crud/query/specify-query/
43+
[*-master]: ${prefix}/${version}/read/change-streams/ -> ${base}/${version}/monitoring-and-logging/change-streams/
44+
[*-master]: ${prefix}/${version}/logging/ -> ${base}/${version}/monitoring-and-logging/logging/
45+
[*-master]: ${prefix}/${version}/monitoring/ -> ${base}/${version}/monitoring-and-logging/monitoring/
46+
[*-master]: ${prefix}/${version}/data-formats/custom-types/ -> ${base}/${version}/data-formats/custom-types/type-codecs/
47+
[*-master]: ${prefix}/${version}/serialization/#binary-data -> ${base}/${version}/reference/compatibility/
48+
[*-master]: ${prefix}/${version}/compatibility/ -> ${base}/${version}/reference/compatibility/
49+
[*-master]: ${prefix}/${version}/get-started/connect-to-mongodb/ -> ${base}/${version}/get-started/
50+
[*-master]: ${prefix}/${version}/get-started/create-a-connection-string/ -> ${base}/${version}/get-started/
51+
[*-master]: ${prefix}/${version}/get-started/create-a-deployment/ -> ${base}/${version}/get-started/
52+
[*-master]: ${prefix}/${version}/get-started/download-and-install/ -> ${base}/${version}/get-started/
53+
[*-master]: ${prefix}/${version}/get-started/next-steps/ -> ${base}/${version}/get-started/
54+
[*-master]: ${prefix}/${version}/motor-async-migration/ -> ${base}/${version}/reference/migration/
55+
[*-master]: ${prefix}/${version}/pymongo-to-async-guide/ -> ${base}/${version}/reference/migration/
56+
[*-master]: ${prefix}/${version}/previous-versions/ -> ${base}/${version}/reference/previous-versions/
57+
[*-master]: ${prefix}/${version}/whats-new/ -> ${base}/${version}/reference/release-notes/
58+
[*-master]: ${prefix}/${version}/tools/ -> ${base}/${version}/integrations/
59+
[*-master]: ${prefix}/${version}/upgrade/ -> ${base}/${version}/reference/upgrade/
60+
[*-master]: ${prefix}/${version}/write-operations/ -> ${base}/${version}/crud/[v4.7-*]: ${prefix}/${version}/get-started/connect-to-mongodb -> ${base}/${version}/get-started/run-sample-query/
61+
[*-master]: ${prefix}/${version}/work-with-indexes/ -> ${base}/${version}/indexes/
62+
63+
[*-master]: ${prefix}/${version}/indexes/single-field-index/ -> ${base}/${version}/indexes/
64+
[*-master]: ${prefix}/${version}/indexes/compound-index/ -> ${base}/${version}/indexes/
65+
[*-master]: ${prefix}/${version}/indexes/multikey-index/ -> ${base}/${version}/indexes/
66+
[*-master]: ${prefix}/${version}/indexes/atlas-search-index/ -> ${base}/${version}/indexes/
67+
[*-master]: ${prefix}/${version}/indexes/text-index/ -> ${base}/${version}/indexes/
68+
[*-master]: ${prefix}/${version}/indexes/geospatial-index/ -> ${base}/${version}/indexes/
69+
[*-master]: ${prefix}/${version}/indexes/unique-index/ -> ${base}/${version}/indexes/
70+
[*-master]: ${prefix}/${version}/indexes/wildcard-index/ -> ${base}/${version}/indexes/
71+
[*-master]: ${prefix}/${version}/indexes/clustered-index/ -> ${base}/${version}/indexes/
72+
73+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/ -> ${base}/${version}/aggregation/
74+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/filtered-subset/ -> ${base}/${version}/aggregation/filtered-subset/
75+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/group-total/ -> ${base}/${version}/aggregation/group-total/
76+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/multi-field-join/ -> ${base}/${version}/aggregation/multi-field-join/
77+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/one-to-one-join/ -> ${base}/${version}/aggregation/one-to-one-join/
78+
[*-master]: ${prefix}/${version}/aggregation/aggregation-tutorials/unpack-arrays/ -> ${base}/${version}/aggregation/unpack-arrays/
1879

1980
# temp redirect until DOP deletes unversioned URLs
2081
[master]: ${prefix}/compatibility/ -> ${base}/current/compatibility/

snooty.toml

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name = "pymongo"
22
title = "PyMongo Driver"
33
toc_landing_pages = [
44
"/get-started",
5-
"/write-operations",
6-
"/read",
75
"/connect",
8-
"/indexes",
9-
"work-with-indexes",
106
"/aggregation",
11-
"/aggregation/aggregation-tutorials",
127
"/security",
138
"/security/authentication",
14-
"/aggregation-tutorials",
159
"/data-formats",
10+
"/connect/connection-options",
11+
"crud",
12+
"/crud/query",
13+
"/crud/update",
14+
"monitoring-and-logging"
1615
]
1716

1817
intersphinx = [

source/aggregation.txt

+36-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Transform Your Data with Aggregation
99
:values: reference
1010

1111
.. meta::
12-
:keywords: code example, transform, computed, pipeline
12+
:keywords: code example, transform, computed, pipeline, runnable app
1313
:description: Learn how to use {+driver-short+} to perform aggregation operations.
1414

1515
.. contents:: On this page
@@ -22,7 +22,11 @@ Transform Your Data with Aggregation
2222
:titlesonly:
2323
:maxdepth: 1
2424

25-
Tutorials </aggregation/aggregation-tutorials>
25+
Filtered Subset </aggregation/filtered-subset/>
26+
Group & Total </aggregation/group-total/>
27+
Unpack Arrays & Group </aggregation/unpack-arrays/>
28+
One-to-One Join </aggregation/one-to-one-join/>
29+
Multi-Field Join </aggregation/multi-field-join/>
2630

2731
Overview
2832
--------
@@ -254,7 +258,36 @@ Aggregation Tutorials
254258
~~~~~~~~~~~~~~~~~~~~~
255259

256260
To view step-by-step explanations of common aggregation tasks, see
257-
:ref:`pymongo-aggregation-tutorials-landing`.
261+
the following tutorials:
262+
263+
- :ref:`pymongo-aggregation-filtered-subset`
264+
- :ref:`pymongo-aggregation-group-total`
265+
- :ref:`pymongo-aggregation-arrays`
266+
- :ref:`pymongo-aggregation-one-to-one`
267+
- :ref:`pymongo-aggregation-multi-field`
268+
269+
Aggregation tutorials provide detailed explanations of common
270+
aggregation tasks in a step-by-step format. The tutorials are adapted
271+
from examples in the `Practical MongoDB Aggregations book
272+
<https://www.practical-mongodb-aggregations.com/>`__ by Paul Done.
273+
274+
Each tutorial includes the following sections:
275+
276+
- **Introduction**, which describes the purpose and common use cases of the
277+
aggregation type. This section also describes the example and desired
278+
outcome that the tutorial demonstrates.
279+
280+
- **Before You Get Started**, which describes the necessary databases,
281+
collections, and sample data that you must have before building the
282+
aggregation pipeline and performing the aggregation.
283+
284+
- **Tutorial**, which describes how to build and run the aggregation
285+
pipeline. This section describes each stage of the completed
286+
aggregation tutorial, and then explains how to run and interpret the
287+
output of the aggregation.
288+
289+
At the end of each aggregation tutorial, you can find a link to a fully
290+
runnable Python code file that you can run in your environment.
258291

259292
API Documentation
260293
~~~~~~~~~~~~~~~~~

source/aggregation/aggregation-tutorials.txt

-112
This file was deleted.

source/aggregation/aggregation-tutorials/filtered-subset.txt source/aggregation/filtered-subset.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ date of birth, vocation, and other details.
4242
Before You Get Started
4343
----------------------
4444

45-
Before you start this tutorial, complete the
46-
:ref:`pymongo-agg-tutorial-template-app` instructions to set up a working
47-
Python application.
45+
.. include:: /includes/aggregation-tutorial-intro.rst
4846

4947
After you set up the app, access the ``persons`` collection by adding the
5048
following code to the application:

source/aggregation/aggregation-tutorials/group-total.txt source/aggregation/group-total.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ only one customer, the order documents are grouped by the
4444
Before You Get Started
4545
----------------------
4646

47-
Before you start this tutorial, complete the
48-
:ref:`pymongo-agg-tutorial-template-app` instructions to set up a working
49-
Python application.
47+
.. include:: /includes/aggregation-tutorial-intro.rst
5048

5149
After you set up the app, access the ``orders`` collection by adding the
5250
following code to the application:

source/aggregation/aggregation-tutorials/multi-field-join.txt source/aggregation/multi-field-join.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ the ``orders`` collection.
6666
Before You Get Started
6767
----------------------
6868

69-
Before you start this tutorial, complete the
70-
:ref:`pymongo-agg-tutorial-template-app` instructions to set up a working
71-
Python application.
69+
.. include:: /includes/aggregation-tutorial-intro.rst
7270

7371
After you set up the app, access the ``products`` and ``orders``
7472
collections by adding the following code to the application:

source/aggregation/aggregation-tutorials/one-to-one-join.txt source/aggregation/one-to-one-join.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ that exists in documents in both collections.
6161
Before You Get Started
6262
----------------------
6363

64-
Before you start this tutorial, complete the
65-
:ref:`pymongo-agg-tutorial-template-app` instructions to set up a working
66-
Python application.
64+
.. include:: /includes/aggregation-tutorial-intro.rst
6765

6866
After you set up the app, access the ``orders`` and ``products``
6967
collections by adding the following code to the application:

source/aggregation/aggregation-tutorials/unpack-arrays.txt source/aggregation/unpack-arrays.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ into individual product order documents.
4646
Before You Get Started
4747
----------------------
4848

49-
Before you start this tutorial, complete the
50-
:ref:`pymongo-agg-tutorial-template-app` instructions to set up a working
51-
Python application.
49+
.. include:: /includes/aggregation-tutorial-intro.rst
5250

5351
After you set up the app, access the ``orders`` collection by adding the
5452
following code to the application:

0 commit comments

Comments
 (0)