Skip to content

Commit 7607afb

Browse files
authored
DOCSP-53843 Check TOC (#14567)
* DOCSP-53843 Check TOC * edits * NR review * get rid of build failure
1 parent e17863f commit 7607afb

File tree

4 files changed

+39
-15
lines changed

4 files changed

+39
-15
lines changed

content/node/netlify.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,33 @@ to = "/docs/drivers/node/:version/monitoring-and-logging/change-streams/"
775775
from = "/docs/drivers/node/:version/whats-new/"
776776
to = "/docs/drivers/node/:version/reference/release-notes/"
777777

778+
[[redirects]]
779+
from = "/docs/drivers/node/:version/crud/"
780+
to = "/docs/drivers/node/:version/reference/crud/insert/"
781+
782+
[[redirects]]
783+
from = "/docs/drivers/node/:version/crud/query/"
784+
to = "/docs/drivers/node/:version/crud/query/retrieve/"
785+
786+
[[redirects]]
787+
from = "/docs/drivers/node/:version/data-formats/"
788+
to = "/docs/drivers/node/:version/data-formats/bson/"
789+
790+
[[redirects]]
791+
from = "/docs/drivers/node/:version/crud/query/"
792+
to = "/docs/drivers/node/:version/crud/query/retrieve/"
793+
794+
[[redirects]]
795+
from = "/docs/drivers/node/:version/security/"
796+
to = "/docs/drivers/node/:version/security/authentication/"
797+
798+
[[redirects]]
799+
from = "/docs/drivers/node/:version/reference/"
800+
to = "/docs/drivers/node/:version/reference/release-notes/"
801+
802+
[[redirects]]
803+
from = "/docs/drivers/node/:version/integrations/"
804+
to = "/docs/drivers/node/:version/integrations/mongoose-get-started/"
778805

779806
# Online versions: ['upcoming', 'current', 'v6.19', 'v6.18', 'v6.17', 'v6.16', 'v6.15', 'v6.14', 'v6.13', 'v6.12', 'v6.11', 'v6.10', 'v6.9']
780807
### CATCH ALLS (Redirects any /docs/drivers/node/ page that would've 404ed to the version's landing page)

content/node/upcoming/source/index.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Learn how to interact wth MongoDB databases and collections in the
7272
Read and Write Data
7373
-------------------
7474

75-
Learn how to find, update, and delete data in the :ref:`<node-crud-operations>` section.
75+
Learn how to find, update, and delete data in the :ref:`CRUD <node-insert>` section.
7676

7777
Transform Your Data with Aggregation
7878
-------------------------------------
@@ -84,7 +84,7 @@ Data Formats
8484
------------
8585

8686
Learn how to work with BSON and other data formats in the
87-
:ref:`<node-data-formats>` section.
87+
:ref:`Data Formats <node-bson>` section.
8888

8989
Optimize Queries with Indexes
9090
-----------------------------
@@ -110,13 +110,13 @@ Monitoring and Logging
110110
----------------------
111111

112112
Learn how to monitor changes to your application and write them to logs in the
113-
:ref:`<node-monitoring-logging>` section.
113+
:ref:`Monitoring and Logging <node-monitoring>` section.
114114

115115
Secure Your Data
116116
----------------
117117

118118
Learn about ways you can authenticate your application and encrypt your data in
119-
the :ref:`<node-security>` section.
119+
the :ref:`Security <node-authentication>` section.
120120

121121
Reference
122122
---------

content/node/upcoming/source/integrations.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ Third-Party Integrations and Tools
1515
:values: reference
1616

1717
.. meta::
18-
:keywords: i
18+
:robots: noindex, nosnippet
1919

2020
.. toctree::
2121
:titlesonly:
2222
:maxdepth: 1
2323

2424
Get Started with Mongoose </integrations/mongoose-get-started>
25+

content/table-of-contents/docset-data/node-driver.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ const tocData: TocItem[] = [
9999
{
100100
label: "CRUD Operations",
101101
contentSite: "node",
102-
url: "/docs/drivers/node/:version/crud",
103102
collapsible: true,
104103
items: [
105104
{
@@ -110,7 +109,6 @@ const tocData: TocItem[] = [
110109
{
111110
label: "Query Documents",
112111
contentSite: "node",
113-
url: "/docs/drivers/node/:version/crud/query",
114112
collapsible: true,
115113
items: [
116114
{
@@ -287,7 +285,6 @@ const tocData: TocItem[] = [
287285
{
288286
label: "Data Formats",
289287
contentSite: "node",
290-
url: "/docs/drivers/node/:version/data-formats",
291288
collapsible: true,
292289
items: [
293290
{
@@ -331,32 +328,34 @@ const tocData: TocItem[] = [
331328
{
332329
label: "Monitoring and Logging",
333330
contentSite: "node",
334-
url: "/docs/drivers/node/:version/monitoring-and-logging",
335331
collapsible: true,
336332
items: [
337333
{
338334
label: "Monitoring",
339335
contentSite: "node",
340336
url: "/docs/drivers/node/:version/monitoring-and-logging/monitoring",
337+
versions: { excludes: outdatedVersions },
338+
},
339+
{
340+
label: "Monitoring",
341+
contentSite: "node",
341342
collapsible: true,
343+
versions: { includes: outdatedVersions },
342344
items: [
343345
{
344346
label: "Cluster",
345347
contentSite: "node",
346348
url: "/docs/drivers/node/:version/monitoring-and-logging/monitoring/cluster-monitoring",
347-
versions: { includes: outdatedVersions },
348349
},
349350
{
350351
label: "Command",
351352
contentSite: "node",
352353
url: "/docs/drivers/node/:version/monitoring-and-logging/monitoring/command-monitoring",
353-
versions: { includes: outdatedVersions },
354354
},
355355
{
356356
label: "Connection Pool",
357357
contentSite: "node",
358358
url: "/docs/drivers/node/:version/monitoring-and-logging/monitoring/connection-monitoring",
359-
versions: { includes: outdatedVersions },
360359
}
361360
]
362361
},
@@ -375,7 +374,6 @@ const tocData: TocItem[] = [
375374
{
376375
label: "Security",
377376
contentSite: "node",
378-
url: "/docs/drivers/node/:version/security",
379377
collapsible: true,
380378
items: [
381379
{
@@ -456,7 +454,6 @@ const tocData: TocItem[] = [
456454
{
457455
label: "Third-Party Integrations",
458456
contentSite: "node",
459-
url: "/docs/drivers/node/:version/integrations",
460457
collapsible: true,
461458
versions: { excludes: [...outdatedVersions, "v6.16"] },
462459
items: [
@@ -576,7 +573,6 @@ const tocData: TocItem[] = [
576573
{
577574
label: "Reference",
578575
contentSite: "node",
579-
url: "/docs/drivers/node/:version/reference",
580576
collapsible: true,
581577
items: [
582578
{

0 commit comments

Comments
 (0)