From b4d877542b9f9eb9248155d1de8adf0f5de22582 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 11 Dec 2013 23:33:41 +0100 Subject: [PATCH] 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. --- Gruntfile.js | 12 ++++++++++++ package.json | 13 ++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 66de24c05..74d80b9c7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -93,6 +93,18 @@ module.exports = function (grunt) { options: { dest: 'CHANGELOG.md' } + }, + ngdocs: { + options: { + dest: 'site', + html5Mode: false, + title: 'UI Router', + startPage: '/api', + }, + api: { + src: ['src/**/*.js'], + title: 'API Reference' + } } }); diff --git a/package.json b/package.json index b5e79face..7dd3a92eb 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,12 @@ "web": "https://github.com/ksperling" } ], - "maintainers": [{ - "name": "AngularUI", - "web": "https://github.com/angular-ui?tab=members" - }], + "maintainers": [ + { + "name": "AngularUI", + "web": "https://github.com/angular-ui?tab=members" + } + ], "repository": { "type": "git", "url": "https://github.com/angular-ui/ui-router.git" @@ -58,6 +60,7 @@ "karma": "~0.10.4", "karma-phantomjs-launcher": "~0.1.0", "load-grunt-tasks": "~0.2.0", - "grunt-conventional-changelog": "~1.0.0" + "grunt-conventional-changelog": "~1.0.0", + "grunt-ngdocs": "~0.1.7" } }