Skip to content

Commit

Permalink
CXX-1587 update site generation for modern hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
rcsanchez97 authored and kevinAlbs committed Nov 24, 2020
1 parent b00d8a8 commit 2689778
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/content/index.md → docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Welcome to the MongoDB C++ driver. On this site, you'll find documentation
to help you get the most from MongoDB and C++. If you're just starting
out, take a look at these pages first:

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

## Driver status by family and version

Expand Down
2 changes: 1 addition & 1 deletion docs/content/legacy-v1/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ mongoclient-gd.pdb
#### Initialization and Configuration

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

#### Client Headers

Expand Down
7 changes: 3 additions & 4 deletions docs/content/legacy-v1/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ contents of a database after your C++ program runs.

### Installing the Driver Library and Headers

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

### Initializing the Driver Library

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

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

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

### Inserting

Expand Down
2 changes: 1 addition & 1 deletion docs/content/mongocxx-v3/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title = "Tutorial for mongocxx"
- A [mongod](https://docs.mongodb.com/master/reference/program/mongod/)
instance running on localhost on port 27017.

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/themes/mongodb/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ partial "header.html" . }}
{{ $.Scratch.Set "indexFound" false }}
{{ range where .Data.Pages ".Type" "index" }}
{{ range where .Site.Pages ".Type" "index" }}
{{ $.Scratch.Set "indexFound" true }}
{{ .Content }}
{{ end }}
Expand Down

0 comments on commit 2689778

Please sign in to comment.