Skip to content

Commit b4d8775

Browse files
committed
chore(grunt): adds grunt-ngdocs plugin
also integrates it into existing grunt configuration. this is just the basic stuff, developer guide and tutorial to come.
1 parent 20fcbf8 commit b4d8775

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

Gruntfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ module.exports = function (grunt) {
9393
options: {
9494
dest: 'CHANGELOG.md'
9595
}
96+
},
97+
ngdocs: {
98+
options: {
99+
dest: 'site',
100+
html5Mode: false,
101+
title: 'UI Router',
102+
startPage: '/api',
103+
},
104+
api: {
105+
src: ['src/**/*.js'],
106+
title: 'API Reference'
107+
}
96108
}
97109
});
98110

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
"web": "https://github.com/ksperling"
1919
}
2020
],
21-
"maintainers": [{
22-
"name": "AngularUI",
23-
"web": "https://github.com/angular-ui?tab=members"
24-
}],
21+
"maintainers": [
22+
{
23+
"name": "AngularUI",
24+
"web": "https://github.com/angular-ui?tab=members"
25+
}
26+
],
2527
"repository": {
2628
"type": "git",
2729
"url": "https://github.com/angular-ui/ui-router.git"
@@ -58,6 +60,7 @@
5860
"karma": "~0.10.4",
5961
"karma-phantomjs-launcher": "~0.1.0",
6062
"load-grunt-tasks": "~0.2.0",
61-
"grunt-conventional-changelog": "~1.0.0"
63+
"grunt-conventional-changelog": "~1.0.0",
64+
"grunt-ngdocs": "~0.1.7"
6265
}
6366
}

0 commit comments

Comments
 (0)