gulp.task('run:dgeni', function () {
    var dgeni = new Dgeni([dgeni_config]);
    return dgeni.generate().then(function (docs) {
        console.log(docs.length, 'docs generated');
    })
});
Exemple #2
0
gulp.task('doc-gen', ['bower'], function() {
  var dgeni = new Dgeni([require('./config')]);
  return dgeni.generate().catch(function() {
    process.exit(1);
  });
});
 grunt.registerTask('dgeni', 'Generate docs via dgeni.', function () {
     var done = this.async();
     var dgeni = new Dgeni([require('./docs/dgeni.conf')]);
     dgeni.generate().then(done);
 });
 gulp.task('docs-generate', ['build'], function() {
   var dgeni = new Dgeni([
     require('./config')
   ]);
   return dgeni.generate();
 });
Exemple #5
0
gulp.task('docs-build', ['docs-deps'], function () {
	var dgeni = new Dgeni([require('./docs/config')])
	return dgeni.generate();
});
Exemple #6
0
'use strict';

var Dgeni = require('dgeni');
var packages = [require('./docs/dgeni.conf')];
var dgeni = new Dgeni(packages);

dgeni.generate().then(function(docs) {
    console.log(docs.length, 'docs generated');
});
Exemple #7
0
  templateFinder.templatePatterns = [
    '${ doc.template }',
    '${ doc.id }.${ doc.docType }.template.html',
    '${ doc.id }.template.html',
    '${ doc.docType }.template.html',
    '${ doc.id }.${ doc.docType }.template.js',
    '${ doc.id }.template.js',
    '${ doc.docType }.template.js',
    '${ doc.id }.${ doc.docType }.template.json',
    '${ doc.id }.template.json',
    '${ doc.docType }.template.json',
    'common.template.html'
  ];

  // Nunjucks and Angular conflict in their template bindings so change Nunjucks
  templateEngine.config.tags = {
    variableStart: '{$',
    variableEnd: '$}'
  };
});


module.exports = apiDocsPackage;

// Run the dgeni pipeline, generating documentation.
// TODO(jelbourn): remove this once the process is more final in favor of gulp.
let dgeni = new Dgeni([apiDocsPackage]);
dgeni.generate().then(docs => {
  console.log(docs);
});