compile-docs.js 526 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright 2018 Scytl Secure Electronic Voting SA
  3. *
  4. * All rights reserved
  5. *
  6. * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
  7. */
  8. const gulp = require('gulp');
  9. const jsdoc = require('gulp-jsdoc3');
  10. gulp.task('generate-docs', (done) => {
  11. const config = require('../jsdoc.conf.json');
  12. gulp.src(
  13. [
  14. './doc/api-guide.md',
  15. './src/lib/client/config.js',
  16. './src/lib/api.js',
  17. ],
  18. { read: false }
  19. )
  20. .pipe(jsdoc(config, done));
  21. });