Skip to content

Commit

Permalink
docs(versions): fixing version dropdown
Browse files Browse the repository at this point in the history
Actually fix the version dropdown this time around

Fixes NODE-1235
  • Loading branch information
daprahamian authored and mbroadst committed Jan 18, 2018
1 parent 3712e1b commit ad64ddb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To run the server call the hugo command:
| Options explained ||
| --------------------------- |--------------------------------------------------------------------------|
| server | Hugo runs its own webserver to render the files |
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-java-driver for gh-pages |
| --baseUrl=http://localhost/ | Normally the base url will be /node-mongodb-native for gh-pages |
| --buildDrafts | Include draft posts in the output - these won't be published to gh-pages |
| -- watch | Automatically reloads on file change |

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/static/js/java.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jQuery(document).ready(function(){
jQuery.getJSON(DOCUMENTATION_OPTIONS.URL_ROOT + "/../versions.json").done(function( data ) {

$.each(data, function( index, value ) {
var versionUrl = "//mongodb.github.io/mongo-java-driver/" + value.version;
var versionUrl = "//mongodb.github.io/node-mongodb-native/" + value.version;
var liClass = DOCUMENTATION_OPTIONS.VERSION == value.version ? ' class="active"' : '';
jQuery("#optionsVersionsMenu").append('<li'+liClass+'><a href="'+ versionUrl +'" data-path="manual">'+ value.version +'</a></li>');
});
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/themes/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To run the server call the hugo command:
| Options explained ||
| --------------------------- |--------------------------------------------------------------------------|
| server | Hugo runs its own webserver to render the files |
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-java-driver for gh-pages |
| --baseUrl=http://localhost/ | Normally the base url will be /node-mongodb-native for gh-pages |
| --buildDrafts | Include draft posts in the output - these won't be published to gh-pages |
| -- watch | Automatically reloads on file change |

Expand Down

0 comments on commit ad64ddb

Please sign in to comment.