@@ -8,7 +8,6 @@ const sequence = require('run-sequence');
88const gutil = require ( 'gulp-util' ) ;
99const pkg = require ( './package.json' ) ;
1010const exec = require ( 'child_process' ) . exec ;
11- const buildDirectory = 'build' ;
1211
1312const shellExec = ( command , callback ) => {
1413 const args = process . argv . slice ( 3 ) . join ( ' ' ) ,
@@ -34,25 +33,7 @@ gulp.task('test', hint('npm run test'));
3433gulp . task ( 'lint' , hint ( 'npm run lint' ) ) ;
3534
3635gulp . 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
5839gulp . task ( 'bump' , ( ) => {
0 commit comments