mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
style: fix some missing semi-colons and spaces, typos
This commit is contained in:
@@ -30,7 +30,7 @@ writer.makeDir('build/docs/syntaxhighlighter').then(function() {
|
||||
return Q.deep(fileFutures);
|
||||
}).then(function generateManifestFile() {
|
||||
return appCache('build/docs/').then(function(list) {
|
||||
writer.output('appcache-offline.manifest',list)
|
||||
writer.output('appcache-offline.manifest', list);
|
||||
});
|
||||
}).then(function printStats() {
|
||||
console.log('DONE. Generated ' + docs.length + ' pages in ' + (now()-start) + 'ms.' );
|
||||
@@ -46,7 +46,7 @@ function writeTheRest(writesFuture) {
|
||||
var manifest = 'manifest="appcache.manifest"',
|
||||
jq = '<script src="jquery.min.js"></script>',
|
||||
ngMin = '<script src="../angular.min.js" ng:autobind></script>',
|
||||
ng = '<script src="../angular.js" ng:autobind></script>'
|
||||
ng = '<script src="../angular.js" ng:autobind></script>';
|
||||
|
||||
writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index.html',
|
||||
writer.replace, {'doc:manifest': manifest,
|
||||
|
||||
@@ -8,14 +8,14 @@ var Q = require('qq');
|
||||
var OUTPUT_DIR = "build/docs/";
|
||||
var fs = require('fs');
|
||||
|
||||
exports.output = function(file, content){
|
||||
exports.output = function(file, content) {
|
||||
console.log('writing ', file);
|
||||
var fullPath = OUTPUT_DIR + file;
|
||||
var dir = parent(fullPath);
|
||||
return Q.when(exports.makeDir(dir), function(error) {
|
||||
qfs.write(fullPath,exports.toString(content));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//recursively create directory
|
||||
exports.makeDir = function (path) {
|
||||
|
||||
Reference in New Issue
Block a user