Skip to content

Commit

Permalink
Merge pull request #257 from silvolu/docs-local-master-fix
Browse files Browse the repository at this point in the history
fix(docs): make sure to pass a valid version to semver
  • Loading branch information
stephenplusplus committed Oct 14, 2014
2 parents 00e6466 + e2e8bf3 commit 5fc1025
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/components/docs/docs-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ angular.module('gcloud.docs')
var VERSIONS = pages.VERSIONS;

if (version === 'master') {
// Use the most recent release.
version = versions[0];
// Set an insanely high version. This is because for master we need
// all the modules from the latest version, but when executed locally,
// we don't know which one is the latest unless we manually add to
// versions.txt
version = '1000.0.0';
}

// Use semver matching to put all matching modules together.
Expand Down

0 comments on commit 5fc1025

Please sign in to comment.