forked from crpe/SugoiOverflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dgeniConf.js
42 lines (33 loc) · 1.56 KB
/
dgeniConf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Canonical path provides a consistent path (i.e. always forward slashes) across different OSes
var path = require('path');
var Package = require('dgeni').Package;
// Create and export a new Dgeni package called dgeni-example. This package depends upon
// the jsdoc and nunjucks packages defined in the dgeni-packages npm module.
module.exports = new Package('dgeni-example', [
// require('dgeni-packages/jsdoc'),
// require('dgeni-packages/nunjucks'),
require('dgeni-packages/ngdoc'),
require('dgeni-packages/nunjucks'),
//require('dgeni-packages/examples')
])
// Configure our dgeni-example package. We can ask the Dgeni dependency injector
// to provide us with access to services and processors that we wish to configure
.config(function(log, readFilesProcessor, templateFinder, writeFilesProcessor) {
'use strict';
log.level = 'info';
// Specify the base path used when resolving relative paths to source and output files
readFilesProcessor.basePath = path.resolve(__dirname, './');
readFilesProcessor.sourceFiles = [
{
include: 'client/**/*.js',
basePath: 'client'
}
];
// Add a folder to search for our own templates to use when rendering docs
//templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates'));
// Specify how to match docs to templates.
// In this case we just use the same static template for all docs
//templateFinder.templatePatterns.unshift('common.template.html');
// Specify where the writeFilesProcessor will write our generated doc files
writeFilesProcessor.outputFolder = 'clientdocs';
});