Skip to content

Commit 603d445

Browse files
author
Chris Cho
authored
docs: add banner with link to new reference documentation
DOCSP-9967
1 parent 19ec62f commit 603d445

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/reference/config.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
baseurl = "/node-mongodb-native/steverenaker/DOCS-8756"
1+
baseurl = "/node-mongodb-native/3.6"
22
languageCode = "en-us"
33
title = "MongoDB Node.js Driver"
44
theme = "mongodb"
55
canonifyurls = false
66

7+
[params]
8+
referenceDocsUrl = "https://docs.mongodb.com/drivers/node"
9+
710
[blackfriday]
811
plainIdAnchors = true
912

docs/reference/layouts/partials/header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
<div class="documentwrapper">
2626
<div class="bodywrapper">
2727
<div class="body">
28+
29+
{{ partial "new_version.html" . }}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="alert alert-info" role="alert">
2+
Note: You are currently viewing version 3.6 of the Node.js driver documentation.
3+
<a href="{{.Site.Params.ReferenceDocsUrl}}">Click here</a> for the latest version.
4+
</div>

0 commit comments

Comments
 (0)