aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs.config.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-03-11 06:34:09 +0000
committerPeter Bacon Darwin2014-03-11 06:54:52 +0000
commita8aba8957be799823391168352a435fe60e3fc7d (patch)
tree98d81337f5c88119d6b95dae7e4320c5bbfce13c /docs/docs.config.js
parentca0ac649971ae4fb50419b38f92a98d2226eb696 (diff)
downloadangular.js-a8aba8957be799823391168352a435fe60e3fc7d.tar.bz2
docs(versions): rework the version info extraction
The docs were relying on the grunt/util module for getting version info but this was unreliable and full of custom regexes. This is moved into a new version-info module that makes much better use of the semver library.
Diffstat (limited to 'docs/docs.config.js')
-rw-r--r--docs/docs.config.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/docs.config.js b/docs/docs.config.js
index 2e163254..883f80f0 100644
--- a/docs/docs.config.js
+++ b/docs/docs.config.js
@@ -1,13 +1,12 @@
var path = require('canonical-path');
-var gruntUtils = require('../lib/grunt/utils');
+var versionInfo = require('../lib/versions/version-info');
var basePath = __dirname;
var basePackage = require('./config');
module.exports = function(config) {
- var version = gruntUtils.getVersion();
- var cdnUrl = "//ajax.googleapis.com/ajax/libs/angularjs/" + version.cdn;
+ var cdnUrl = "//ajax.googleapis.com/ajax/libs/angularjs/" + versionInfo.currentPackage.cdnVersion;
var getVersion = function(component, sourceFolder, packageFile) {
sourceFolder = sourceFolder || '../bower_components';