Skip to content

Commit 2689778

Browse files
rcsanchez97kevinAlbs
authored andcommitted
CXX-1587 update site generation for modern hugo
1 parent b00d8a8 commit 2689778

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

docs/content/index.md renamed to docs/content/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Welcome to the MongoDB C++ driver. On this site, you'll find documentation
1010
to help you get the most from MongoDB and C++. If you're just starting
1111
out, take a look at these pages first:
1212

13-
* [Installing mongocxx]({{< ref "mongocxx-v3/installation.md" >}})
14-
* [Quick-start tutorial]({{< ref "mongocxx-v3/tutorial.md" >}})
13+
* [Installing mongocxx]({{< ref "/mongocxx-v3/installation" >}})
14+
* [Quick-start tutorial]({{< ref "/mongocxx-v3/tutorial" >}})
1515

1616
## Driver status by family and version
1717

docs/content/legacy-v1/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ mongoclient-gd.pdb
355355
#### Initialization and Configuration
356356

357357
NOTE: You *must* initialize the legacy driver before use. See
358-
[Configuration]({{< ref "legacy-v1/configuration.md" >}}) for more details.
358+
[Configuration]({{< ref "/legacy-v1/configuration" >}}) for more details.
359359

360360
#### Client Headers
361361

docs/content/legacy-v1/tutorial.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ contents of a database after your C++ program runs.
2626

2727
### Installing the Driver Library and Headers
2828

29-
Please see [Installation]({{< ref "legacy-v1/installation.md" >}}) for
29+
Please see [Installation]({{< ref "/legacy-v1/installation" >}}) for
3030
instructions on how to download, build, and install the C++ client driver.
3131

3232
### Initializing the Driver Library
3333

34-
Please see [Configuration]({{< ref "legacy-v1/configuration.md" >}}) for
34+
Please see [Configuration]({{< ref "/legacy-v1/configuration" >}}) for
3535
instructions on how to properly initialize and terminate the driver:
3636

3737
### Connecting
@@ -158,8 +158,7 @@ GENOID should be at the beginning of the generated object. We can do something s
158158
BSONObj p = BSONObjBuilder().genOID().append("name","Joe").append("age",33).obj();
159159
```
160160

161-
Other helpers are listed in [Working with BSON]({{< ref
162-
"legacy-v1/working-with-bson.md" >}}).
161+
Other helpers are listed in [Working with BSON]({{< ref "/legacy-v1/working-with-bson" >}}).
163162

164163
### Inserting
165164

docs/content/mongocxx-v3/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ title = "Tutorial for mongocxx"
1212
- A [mongod](https://docs.mongodb.com/master/reference/program/mongod/)
1313
instance running on localhost on port 27017.
1414

15-
- The mongocxx Driver. See [Installation for mongocxx]({{< ref "mongocxx-v3/installation.md" >}}).
15+
- The mongocxx Driver. See [Installation for mongocxx]({{< ref "/mongocxx-v3/installation" >}}).
1616

1717
- The following statements at the top of your source file:
1818

docs/themes/mongodb/layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ partial "header.html" . }}
22
{{ $.Scratch.Set "indexFound" false }}
3-
{{ range where .Data.Pages ".Type" "index" }}
3+
{{ range where .Site.Pages ".Type" "index" }}
44
{{ $.Scratch.Set "indexFound" true }}
55
{{ .Content }}
66
{{ end }}

0 commit comments

Comments
 (0)