Skip to content

Commit

Permalink
fix(dist): don't distribute the HTML dart api docs
Browse files Browse the repository at this point in the history
fixes #4115

Closes #4211
  • Loading branch information
alexeagle committed Sep 17, 2015
1 parent 9179afb commit be6d92c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var shouldLog = require('./tools/build/logging');
var tslint = require('gulp-tslint');
var dartSdk = require('./tools/build/dart');
var sauceConf = require('./sauce.conf');
var os = require('os');

require('./tools/check-environment')({
requiredNpmVersion: '>=2.9.0',
Expand Down Expand Up @@ -250,6 +251,7 @@ gulp.task('build/analyze.ddc.dart', dartanalyzer(gulp, gulpPlugins, {

gulp.task('build/check.apidocs.dart', dartapidocs(gulp, gulpPlugins, {
dest: CONFIG.dest.dart,
output: os.tmpdir(),
command: DART_SDK.DARTDOCGEN
}));

Expand Down
3 changes: 2 additions & 1 deletion tools/build/dartapidocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var spawn = require('child_process').spawn;
var util = require('./util');

module.exports = function(gulp, plugins, config) {
config.output = config.output || 'doc/api';
return function() {
return util.forEachSubDirSequential(config.dest, function(dir) {
var defer = Q.defer();
Expand All @@ -21,7 +22,7 @@ module.exports = function(gulp, plugins, config) {
} else {
console.log('INFO: running dartdoc for ', dir);

var stream = spawn(config.command, ['--input=.'], {
var stream = spawn(config.command, ['--input=.', '--output=' + config.output], {
stdio: [process.stdin, process.stdout, process.stderr],
cwd: dir
});
Expand Down

0 comments on commit be6d92c

Please sign in to comment.