Skip to content

Commit 34e6ecd

Browse files
committed
Added dependencies to installation guides
JAVA-1749
1 parent 4d0f5ce commit 34e6ecd

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

docs/reference/content/driver-async/getting-started/installation-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ The recommended way to get started using one of the drivers in your project is w
1717
## MongoDB Async Driver
1818
The new asynchronous API that can leverage either Netty or Java 7's AsynchronousSocketChannel for fast and non-blocking IO.
1919

20-
{{< install artifactId="mongodb-driver-async" version="3.0.0" >}}
20+
{{< install artifactId="mongodb-driver-async" version="3.0.0" dependencies="`bson`, `mongodb-driver-core`">}}

docs/reference/content/driver/getting-started/installation-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The MongoDB Driver is the updated synchronous Java driver that includes the
2222
legacy API as well as a new generic MongoCollection interface that complies with
2323
a new cross-driver CRUD specification.
2424

25-
{{< install artifactId="mongodb-driver" version="3.0.0" >}}
25+
{{< install artifactId="mongodb-driver" version="3.0.0" dependencies="`bson`, `mongodb-driver-core`">}}
2626

2727

2828
## Uber MongoDB Java Driver

docs/reference/layouts/shortcodes/install.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ $artifactId := .Get "artifactId"}}{{ $version := .Get "version"}}
1+
{{ $artifactId := .Get "artifactId"}}{{ $version := .Get "version"}}{{ $dependencies := .Get "dependencies"}}
22
<section class="maven">
33
<pre><code class="ini">
44
&lt;dependencies&gt;
@@ -19,9 +19,9 @@
1919

2020
</code></pre>
2121
</section>
22-
<section class="downloadInfo">
23-
<p class="small">You can also download the jars
22+
<section class="downloadInfo small">
23+
<p>You can also download the jars
2424
<a href="https://oss.sonatype.org/content/repositories/releases/org/mongodb/{{$artifactId}}/{{$version}}" target="_blank">directly</a>
25-
from sonatype.</a>
26-
</p>
25+
from sonatype.</a></p>
26+
{{ with $dependencies}}{{ $depMarkdown := add (add (add (add "**Note:** `" $artifactId ) "` requires the following dependencies: ") . ) "." }}{{$depMarkdown | markdownify}}{{end}}
2727
</section>

docs/reference/static/css/java.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.downloadInfo {
22
margin-top: -24px;
3-
font-size: 14px;
3+
font-size: 13px;
4+
}
5+
.downloadInfo p {
6+
margin: 0px;
47
}

0 commit comments

Comments
 (0)