Skip to content

Commit ac0ea12

Browse files
DOCSP-1682 - Explicitly pull tabs to top of CRUD pages and some index pages. Added section or inline tabs to change streams and an index page.
1 parent f7edd52 commit ac0ea12

14 files changed

+68
-5
lines changed

source/tutorial/analyze-query-plan.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Analyze Query Performance
1010
:depth: 1
1111
:class: singlecol
1212

13+
.. tabs-top::
14+
1315
.. tabs-drivers::
1416

1517
tabs:

source/tutorial/atlas-free-tier-setup.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ deployments. It is a fast, easy, and free way to get started with
1414
MongoDB. To install and run MongoDB locally, see
1515
:ref:`Install MongoDB<tutorial-installation>`.
1616

17+
.. tabs-top::
18+
1719
.. tabs-drivers::
1820

1921
tabs:

source/tutorial/change-streams-example.txt

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Change Stream Examples
2828
:depth: 1
2929
:class: singlecol
3030

31+
Open A Change Stream
32+
--------------------
33+
3134
.. tabs-drivers::
3235

3336
tabs:
@@ -82,15 +85,14 @@ Change Stream Examples
8285
that contains an ``inventory`` collection.
8386

8487

85-
Open A Change Stream
86-
--------------------
87-
8888
This example opens a change stream against a replica set. The change stream is bound to a collection and
8989
change stream documents are iterated with a cursor. This cursor remains open until it is explicitly closed,
9090
as long as a connection to the MongoDB deployment remains open *and* the collection exists.
9191

9292
.. tabs-drivers::
9393

94+
hidden: true
95+
9496
tabs:
9597
- id: python
9698
content: |
@@ -262,6 +264,8 @@ update operation.
262264

263265
.. tabs-drivers::
264266

267+
hidden: true
268+
265269
tabs:
266270
- id: python
267271
content: |
@@ -349,6 +353,37 @@ response document format.
349353
Modify Change Stream Output using Aggregation Pipelines
350354
-------------------------------------------------------
351355

356+
.. COMMENT This is only here to render the tab buttons for this section.
357+
This page flowed better with tabs for each section vs.
358+
tabs above example as the text leading in was conditional.
359+
360+
.. tabs-drivers::
361+
362+
tabs:
363+
- id: python
364+
content: |
365+
366+
- id: motor
367+
content: |
368+
369+
- id: java-sync
370+
content: |
371+
372+
- id: csharp
373+
content: |
374+
375+
- id: c
376+
content: |
377+
378+
- id: nodejs
379+
content: |
380+
381+
- id: php
382+
content: |
383+
384+
- id: ruby
385+
content: |
386+
352387
You can control change stream output by providing an array of one or
353388
more of the following pipeline stages when configuring the change stream:
354389

@@ -360,6 +395,8 @@ more of the following pipeline stages when configuring the change stream:
360395

361396
.. tabs-drivers::
362397

398+
hidden: true
399+
363400
tabs:
364401
- id: java-sync
365402
content: |
@@ -396,6 +433,8 @@ more of the following pipeline stages when configuring the change stream:
396433

397434
.. tabs-drivers::
398435

436+
hidden: true
437+
399438
tabs:
400439
- id: java-sync
401440
content: |
@@ -415,8 +454,6 @@ response document format.
415454
Resume a Change Stream
416455
----------------------
417456

418-
419-
420457
.. tabs-drivers::
421458

422459
tabs:

source/tutorial/getting-started.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Getting Started
88

99
.. default-domain:: mongodb
1010

11+
.. tabs-top::
12+
1113
.. tabs-drivers::
1214

1315
tabs:

source/tutorial/insert-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Insert a Single Document
2828

2929
.. versionadded:: 3.2
3030

31+
.. tabs-top::
32+
3133
.. tabs-drivers::
3234

3335
tabs:

source/tutorial/manage-indexes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ creating indexes, refer to the specific index type pages.
1818
View Existing Indexes
1919
---------------------
2020

21+
.. tabs-top::
22+
2123
.. include:: /includes/driver-view-existing-indexes-tabs.rst
2224

2325
.. index:: index; list indexes

source/tutorial/project-fields-from-query-results.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ To limit the amount of data that MongoDB sends to applications, you can
1616
include a :term:`projection` document to specify or restrict fields to
1717
return.
1818

19+
.. tabs-top::
20+
1921
.. |query_operations| replace:: query operations with projection
2022

2123
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/query-array-of-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Query an Array of Embedded Documents
1313
:description: MongoDB Manual - how to query an array of documents, how to query an array of nested documents, how to query an array of embedded documents.
1414
:keywords: array of nested documents, array of embedded documents, array of documents, nested documents, array index, select, array, array elements, array items
1515

16+
.. tabs-top::
17+
1618
.. |query_operations| replace:: query operations on an array of nested documents
1719

1820
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/query-arrays.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Query an Array
1313
:description: MongoDB Manual - How to query an array: query on the array field as a whole, check if element in array, query for array element, query if field in array, query by array size.
1414
:keywords: array, array elements, array items, queries, select, MongoDB Manual, query an array, query for items in array
1515

16+
.. tabs-top::
17+
1618
.. |query_operations| replace:: query operations on array fields
1719

1820
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/query-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Query Documents
1414
:description: MongoDB Manual. How do I query documents, query top level fields, perform equality match, query with query operators, specify compound query conditions.
1515
:keywords: query, select from collection, select all, select conditions, filters, select where, criteria, greater than, less than, MongoDB Manual
1616

17+
.. tabs-top::
18+
1719
.. |query_operations| replace:: query operations
1820

1921
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/query-embedded-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Query on Embedded/Nested Documents
1414
:description: MongoDB Manual: How to query on embedded documents/nested documents/subdocuments/nested fields. Query/select by embedded documents/nested fields/subdocuments.
1515
:keywords: filter on embedded documents, nested documents, subdocuments, nested fields, field is embedded document, queries, select, MongoDB, greater than, logical AND, compound conditions, select from collection
1616

17+
.. tabs-top::
18+
1719
.. |query_operations| replace:: query operations on embedded/nested documents
1820

1921
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/query-for-null-fields.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Query for Null or Missing Fields
1111

1212
Different query operators in MongoDB treat ``null`` values differently.
1313

14+
.. tabs-top::
15+
1416
.. |query_operations| replace:: operations that query for ``null`` values
1517

1618
.. include:: /includes/driver-example-query-intro.rst

source/tutorial/remove-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Delete Documents
1313
:description: MongoDB Manual: How to delete documents in MongoDB. How to remove documents in MongoDB. How to specify conditions for removing or deleting documents in MongoDB.
1414
:keywords: delete from collection, remove documents from collection, delete documents from collection, MongoDB Manual
1515

16+
.. tabs-top::
17+
1618
.. tabs-drivers::
1719

1820
tabs:

source/tutorial/update-documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Update Documents
1717
``inventory`` collection. To create and/or populate the
1818
``inventory`` collection, run the following:
1919

20+
.. tabs-top::
21+
2022
.. tabs-drivers::
2123

2224
tabs:

0 commit comments

Comments
 (0)