forked from angular-ui/ui-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathngdocs.js
65 lines (65 loc) · 2.46 KB
/
ngdocs.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
options: {
dest: '<%= dist %>/docs',
testingUrlPrefix: '<%= protractor.options.args.baseUrl %>/docs/#!/',
versionedFiles: {
default: 'stable',
waitEval: "(function() { var ret = true; try { angular.module('ui.grid'); } catch (e) { ret = false; } return ret; })()",
versions: {
stable: [
{ src: '/release/<%= pkg.name %>.js', type: 'script' },
{ src: '/release/<%= pkg.name %>.css', type: 'css' }
],
unstable: [
{ src: '/release/<%= pkg.name %>-unstable.js', type: 'script' },
{ src: '/release/<%= pkg.name %>-unstable.css', type: 'css' }
]
}
},
scripts: [
// no jquery automatically loaded for tutorial!!!
'//ajax.googleapis.com/ajax/libs/angularjs/<%= latestAngular %>/angular.js',
'//ajax.googleapis.com/ajax/libs/angularjs/<%= latestAngular %>/angular-touch.js',
'//ajax.googleapis.com/ajax/libs/angularjs/<%= latestAngular %>/angular-animate.js',
'bower_components/csv-js/csv.js',
'bower_components/pdfmake/build/pdfmake.js',
'bower_components/pdfmake/build/vfs_fonts.js',
'bower_components/lodash/dist/lodash.min.js',
'bower_components/jszip/dist/jszip.min.js',
'bower_components/excel-builder-js/dist/excel-builder.dist.js'
],
hiddenScripts: [
'//ajax.googleapis.com/ajax/libs/angularjs/<%= latestAngular %>/angular-animate.js',
'//ajax.googleapis.com/ajax/libs/angularjs/<%= latestAngular %>/angular-aria.js',
'bower_components/google-code-prettify/src/prettify.js',
'node_modules/marked/lib/marked.js'
],
httpScripts: [
// process.env.TRAVIS ? '/release/<%= pkg.name %>.unstable.js' : '/release/<%= pkg.name %>.js'
// '/release/<%= pkg.name %>.js'
],
styles: [
'misc/doc/css/prettify.css',
//'misc/doc/css/bootstrap-flatly.min.css',
//'misc/doc/css/docs.css',
// process.env.TRAVIS ? '<%= dist %>/release/<%= pkg.name %>.unstable.css' : '<%= dist %>/release/<%= pkg.name %>.css'
// '<%= dist %>/release/<%= pkg.name %>.css'
],
title: 'UI Grid',
titleLink: '/',
html5Mode: false,
analytics: {
account: 'UA-46391685-1',
domainName: 'ui-grid.info'
},
navTemplate: 'misc/doc/templates/nav.html'
},
api: {
src: ['src/**/*.js', 'misc/api/**/*.ngdoc', 'test/e2e/**/*.js'],
title: 'API'
},
tutorial: {
src: ['misc/tutorial/**/*.ngdoc'],
title: 'Tutorial'
}
};