Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 47ec6f5

Browse files
chore(doc-gen): add production deployment environment
1 parent 1fb47e0 commit 47ec6f5

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

docs/docs.config.js

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
var path = require('canonical-path');
2+
var gruntUtils = require('../lib/grunt/utils');
23
var basePath = __dirname;
34

45
var basePackage = require('./config');
56

67
module.exports = function(config) {
78

9+
var version = gruntUtils.getVersion();
10+
var cdnUrl = "//ajax.googleapis.com/ajax/libs/angularjs/" + version.cdn;
11+
12+
813
config = basePackage(config);
914

1015
config.set('source.files', [
@@ -80,7 +85,37 @@ module.exports = function(config) {
8085
'css/docs.css',
8186
'css/animations.css'
8287
]
83-
}]
88+
},
89+
{
90+
name: 'production',
91+
scripts: [
92+
cdnUrl + '/angular.min.js',
93+
cdnUrl + '/angular-resource.min.js',
94+
cdnUrl + '/angular-route.min.js',
95+
cdnUrl + '/angular-cookies.min.js',
96+
cdnUrl + '/angular-sanitize.min.js',
97+
cdnUrl + '/angular-touch.min.js',
98+
cdnUrl + '/angular-animate.min.js',
99+
'components/marked/lib/marked.js',
100+
'js/angular-bootstrap/bootstrap.js',
101+
'js/angular-bootstrap/bootstrap-prettify.js',
102+
'js/angular-bootstrap/dropdown-toggle.js',
103+
'components/lunr.js/lunr.min.js',
104+
'components/google-code-prettify/src/prettify.js',
105+
'components/google-code-prettify/src/lang-css.js',
106+
'js/versions-data.js',
107+
'js/pages-data.js',
108+
'js/docs.js'
109+
],
110+
stylesheets: [
111+
'components/bootstrap/dist/css/bootstrap.css',
112+
'components/open-sans-fontface/open-sans.css',
113+
'css/prettify-theme.css',
114+
'css/docs.css',
115+
'css/animations.css'
116+
]
117+
}
118+
]
84119
});
85120

86121
return config;

0 commit comments

Comments
 (0)