Skip to content

Commit

Permalink
Use local documentation (#121)
Browse files Browse the repository at this point in the history
* Clean up the parameters that are passed to the handler

* Linting fixes

* Review feedback.

* Adjust sw-lib tests to work with the changes to a handler's params

* Use node_modules/.bin/documentation
  • Loading branch information
jeffposnick authored Jan 11, 2017
1 parent 79e221e commit bf4dc87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gulp-tasks/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
const gulp = require('gulp');
const rename = require('gulp-rename');
const handlebars = require('gulp-compile-handlebars');
const path = require('path');
const promisify = require('promisify-node');
const {globPromise, processPromiseWrapper, taskHarness} =
require('../build-utils');
Expand Down Expand Up @@ -46,7 +47,8 @@ const documentPackage = (projectPath) => {
return globPromise(`${projectPath}/src/**/*.js`).then((files) => {
const args = ['readme', ...files, '--github', '--section', 'API',
'--readme-file', `${projectPath}/README.md`];
return processPromiseWrapper('documentation', args);
return processPromiseWrapper(
path.join('node_modules', '.bin', 'documentation'), args);
});
});
};
Expand Down

0 comments on commit bf4dc87

Please sign in to comment.