Skip to content

Commit ee848d2

Browse files
committed
removed yuidocjs dev dependency
1 parent e5a7311 commit ee848d2

4 files changed

Lines changed: 13 additions & 679 deletions

File tree

Gulpfile.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const sequence = require('run-sequence');
88
const gutil = require('gulp-util');
99
const pkg = require('./package.json');
1010
const exec = require('child_process').exec;
11-
const buildDirectory = 'build';
1211

1312
const shellExec = (command, callback) => {
1413
const args = process.argv.slice(3).join(' '),
@@ -34,25 +33,7 @@ gulp.task('test', hint('npm run test'));
3433
gulp.task('lint', hint('npm run lint'));
3534

3635
gulp.task('doc', callback => {
37-
const options = {
38-
paths: ['src'],
39-
themedir: 'matter-doc-theme',
40-
outdir: 'doc/build',
41-
linkNatives: true,
42-
project: {
43-
name: pkg.name + ' ' + pkg.version + ' Physics Engine API Docs',
44-
description: pkg.description,
45-
version: pkg.version,
46-
url: pkg.homepage
47-
}
48-
};
49-
50-
const doc = require('yuidocjs');
51-
const json = new doc.YUIDoc(options).run();
52-
json.project = options.project;
53-
54-
const builder = new doc.DocBuilder(options, json);
55-
builder.compile(callback);
36+
shellExec(`yuidoc --config yuidoc.json --project-version ${pkg.version}`, callback);
5637
});
5738

5839
gulp.task('bump', () => {

0 commit comments

Comments
 (0)