Skip to content

Commit ec47659

Browse files
authored
DOCSP-40129: Add TOC to each lang page (#195)
* DOCSP-40129: Add TOC to each lang page * test * another test * another test * fix all tocs * test remove bold text * test bold again
1 parent 8d0e7ed commit ec47659

File tree

14 files changed

+126
-116
lines changed

14 files changed

+126
-116
lines changed

source/includes/docs-toc.rst

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
.. ia::
2+
3+
.. entry:: MongoDB Atlas
4+
:url: https://www.mongodb.com/docs/atlas/getting-started/
5+
6+
.. entry:: Database Manual
7+
:url: https://www.mongodb.com/docs/manual/
8+
9+
.. entry:: Migrators, Tools, and Connectors
10+
:url: /tools-and-connectors
11+
12+
.. entry:: Client Libraries
13+
:id: client-libraries
14+
:url: https://www.mongodb.com/docs/drivers/
15+
16+
.. card-group::
17+
:columns: 4
18+
:layout: default
19+
:ia-entry-id: client-libraries
20+
:type: drivers
21+
22+
.. card::
23+
:headline: C
24+
:url: https://www.mongodb.com/docs/languages/c/
25+
:icon: /images/icons/c.svg
26+
:icon-alt: C Driver icon
27+
28+
.. card::
29+
:headline: C++
30+
:url: https://www.mongodb.com/docs/languages/cpp/
31+
:icon: /images/icons/cpp.svg
32+
:icon-alt: C plus plus Driver icon
33+
34+
.. card::
35+
:headline: C#
36+
:url: https://www.mongodb.com/docs/languages/csharp/
37+
:icon: /images/icons/csharp.svg
38+
:icon-alt: C sharp Driver icon
39+
40+
.. card::
41+
:headline: Go
42+
:url: https://www.mongodb.com/docs/languages/go/
43+
:icon: /images/icons/go.svg
44+
:icon-alt: Go Driver icon
45+
46+
.. card::
47+
:headline: Java
48+
:url: https://www.mongodb.com/docs/languages/java/
49+
:icon: /images/icons/java.svg
50+
:icon-alt: Java Driver icon
51+
52+
.. card::
53+
:headline: Kotlin
54+
:url: https://www.mongodb.com/docs/languages/kotlin/
55+
:icon: /images/icons/kotlin.svg
56+
:icon-alt: Kotlin Driver icon
57+
58+
.. card::
59+
:headline: Node.js
60+
:url: https://www.mongodb.com/docs/languages/javascript/
61+
:icon: /images/icons/node.svg
62+
:icon-alt: Node Driver icon
63+
64+
.. card::
65+
:headline: PHP
66+
:url: https://www.mongodb.com/docs/languages/php/
67+
:icon: /images/icons/php.svg
68+
:icon-alt: PHP Driver icon
69+
70+
.. card::
71+
:headline: Python
72+
:url: https://www.mongodb.com/docs/languages/python/
73+
:icon: /images/icons/python.svg
74+
:icon-alt: Python Driver icon
75+
76+
.. card::
77+
:headline: Ruby
78+
:url: https://www.mongodb.com/docs/languages/ruby/
79+
:icon: /images/icons/ruby.svg
80+
:icon-alt: Ruby Driver icon
81+
82+
.. card::
83+
:headline: Rust
84+
:url: https://www.mongodb.com/docs/languages/rust/
85+
:icon: /images/icons/rust.svg
86+
:icon-alt: Rust Driver icon
87+
88+
.. card::
89+
:headline: Scala
90+
:url: https://www.mongodb.com/docs/languages/scala/
91+
:icon: /images/icons/scala.svg
92+
:icon-alt: Scala Driver icon
93+
94+
.. card::
95+
:headline: Swift
96+
:url: https://www.mongodb.com/docs/drivers/swift/
97+
:icon: /images/icons/swift.svg
98+
:icon-alt: Swift Driver icon
99+
100+
.. card::
101+
:headline: TypeScript
102+
:url: https://www.mongodb.com/docs/languages/javascript/
103+
:icon: /images/icons/ts.svg
104+
:icon-alt: TypeScript Driver icon

source/index.txt

Lines changed: 2 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -11,115 +11,12 @@
1111
MongoDB Documentation
1212
=====================
1313

14-
.. ia::
15-
16-
.. entry:: MongoDB Atlas
17-
:url: https://www.mongodb.com/docs/atlas/getting-started/
18-
19-
.. entry:: Database Manual
20-
:url: https://www.mongodb.com/docs/manual/
21-
22-
.. entry:: Migrators, Tools, and Connectors
23-
:url: /tools-and-connectors
24-
25-
.. entry:: Client Libraries
26-
:id: client-libraries
27-
:url: https://www.mongodb.com/docs/drivers/
28-
29-
.. card-group::
30-
:columns: 4
31-
:layout: default
32-
:ia-entry-id: client-libraries
33-
:type: drivers
34-
35-
.. card::
36-
:headline: C
37-
:url: https://www.mongodb.com/docs/languages/c/
38-
:icon: /images/icons/c.svg
39-
:icon-alt: C Driver icon
40-
41-
.. card::
42-
:headline: C++
43-
:url: https://www.mongodb.com/docs/languages/cpp/
44-
:icon: /images/icons/cpp.svg
45-
:icon-alt: C plus plus Driver icon
46-
47-
.. card::
48-
:headline: C#
49-
:url: https://www.mongodb.com/docs/languages/csharp/
50-
:icon: /images/icons/csharp.svg
51-
:icon-alt: C sharp Driver icon
52-
53-
.. card::
54-
:headline: Go
55-
:url: https://www.mongodb.com/docs/languages/go/
56-
:icon: /images/icons/go.svg
57-
:icon-alt: Go Driver icon
58-
59-
.. card::
60-
:headline: Java
61-
:url: https://www.mongodb.com/docs/languages/java/
62-
:icon: /images/icons/java.svg
63-
:icon-alt: Java Driver icon
64-
65-
.. card::
66-
:headline: Kotlin
67-
:url: https://www.mongodb.com/docs/languages/kotlin/
68-
:icon: /images/icons/kotlin.svg
69-
:icon-alt: Kotlin Driver icon
70-
71-
.. card::
72-
:headline: Node.js
73-
:url: https://www.mongodb.com/docs/languages/javascript/
74-
:icon: /images/icons/node.svg
75-
:icon-alt: Node Driver icon
76-
77-
.. card::
78-
:headline: PHP
79-
:url: https://www.mongodb.com/docs/languages/php/
80-
:icon: /images/icons/php.svg
81-
:icon-alt: PHP Driver icon
82-
83-
.. card::
84-
:headline: Python
85-
:url: https://www.mongodb.com/docs/languages/python/
86-
:icon: /images/icons/python.svg
87-
:icon-alt: Python Driver icon
88-
89-
.. card::
90-
:headline: Ruby
91-
:url: https://www.mongodb.com/docs/languages/ruby/
92-
:icon: /images/icons/ruby.svg
93-
:icon-alt: Ruby Driver icon
94-
95-
.. card::
96-
:headline: Rust
97-
:url: https://www.mongodb.com/docs/languages/rust/
98-
:icon: /images/icons/rust.svg
99-
:icon-alt: Rust Driver icon
100-
101-
.. card::
102-
:headline: Scala
103-
:url: https://www.mongodb.com/docs/languages/scala/
104-
:icon: /images/icons/scala.svg
105-
:icon-alt: Scala Driver icon
106-
107-
.. card::
108-
:headline: Swift
109-
:url: https://www.mongodb.com/docs/drivers/swift/
110-
:icon: /images/icons/swift.svg
111-
:icon-alt: Swift Driver icon
112-
113-
.. card::
114-
:headline: TypeScript
115-
:url: https://www.mongodb.com/docs/languages/javascript/
116-
:icon: /images/icons/ts.svg
117-
:icon-alt: TypeScript Driver icon
14+
.. include:: /includes/docs-toc.rst
11815

11916
.. introduction::
12017

12118
Welcome to the official MongoDB Documentation.
122-
Whether youre a developer, database administrator,
19+
Whether you're a developer, database administrator,
12320
or just starting your journey with MongoDB, our
12421
documentation provides you with the information and
12522
knowledge needed to build applications on MongoDB and

source/languages/c.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
:template: product-landing
2+
:hidefeedback: header
23
:pl-max-width-paragraphs:
34
:noprevnext:
45

56
==============
67
MongoDB with C
78
==============
89

9-
.. default-domain:: mongodb
10-
10+
.. include:: /includes/docs-toc.rst
11+
1112
.. introduction::
1213

13-
Build performant applications in MongoDBs :atlas:`Atlas cloud database </>`
14-
with the support of MongoDBs C driver.
14+
Build performant applications in MongoDB's :atlas:`Atlas cloud database </>`
15+
with the support of MongoDB's C driver.
1516

1617
.. button:: Get started with the MongoDB C Driver
1718
:uri: https://www.mongodb.com/docs/languages/c/c-driver/current/

source/languages/cpp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MongoDB with C++
77
================
88

9-
.. default-domain:: mongodb
9+
.. include:: /includes/docs-toc.rst
1010

1111
.. introduction::
1212

source/languages/csharp.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
MongoDB with C#
77
===============
88

9+
.. include:: /includes/docs-toc.rst
10+
911
.. introduction::
1012

1113
Leverage C# to develop applications based on the .NET framework. MongoDB provides

source/languages/go.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
MongoDB with Go
77
===============
88

9+
.. include:: /includes/docs-toc.rst
10+
911
.. introduction::
1012

1113
Build Go applications using MongoDB's :atlas:`Atlas cloud database </>`. OpenTelemetry

source/languages/java.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MongoDB with Java
77
=================
88

9-
.. default-domain:: mongodb
9+
.. include:: /includes/docs-toc.rst
1010

1111
.. introduction::
1212

source/languages/javascript.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MongoDB with JavaScript
77
=======================
88

9-
.. default-domain:: mongodb
9+
.. include:: /includes/docs-toc.rst
1010

1111
.. introduction::
1212

source/languages/kotlin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MongoDB with Kotlin
77
===================
88

9-
.. default-domain:: mongodb
9+
.. include:: /includes/docs-toc.rst
1010

1111
.. introduction::
1212

source/languages/php.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MongoDB with PHP
77
================
88

9-
.. default-domain:: mongodb
9+
.. include:: /includes/docs-toc.rst
1010

1111
.. introduction::
1212

0 commit comments

Comments
 (0)