Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add `grunt docs` task.

  • Loading branch information...
commit e26ca8f113eb24d553bdcc298cc333eae8a436a1 1 parent dc4a7c7
Robert Jackson rwjblue authored
2  Gruntfile.js
View
@@ -37,4 +37,6 @@ module.exports = function(grunt){
grunt.registerTask('dist', ['buildPackages', 'emberDefeatureify:stripDebug', 'uglify:dist']);
grunt.registerTask('default', ['test']);
+
+ grunt.registerTask('docs', ['setVersionStamp', 'yuidoc']);
};
7 docs/package.json
View
@@ -1,7 +0,0 @@
-{
- "name": "ember-docs",
- "version": "0.0.1",
- "dependencies": {
- "yuidoc": "git://github.com/wagenet/yuidoc.git"
- }
-}
16 docs/yuidoc.json
View
@@ -1,16 +0,0 @@
-{
- "name": "The ember-data API",
- "description": "The ember-data API: a data persistence library for Ember.js",
- "version": "Revision 12",
- "logo": "http://f.cl.ly/items/1A1L432s022u1O1q1V3p/ember%20logo.png",
- "url": "https://github.com/emberjs/data",
- "options": {
- "paths": [
- "../packages/ember-data/lib",
- "../packages/activemodel-adapter/lib",
- "../packages/ember-inflector/lib"
- ],
- "exclude": "vendor",
- "outdir": "./build"
- }
-}
3  package.json
View
@@ -24,6 +24,7 @@
"bower": "~1.2",
"grunt-ember-defeatureify": "~0.1.0",
"aws-sdk": "~2.0.0-rc8",
- "grunt-cli": "~0.1.13"
+ "grunt-cli": "~0.1.13",
+ "grunt-contrib-yuidoc": "~0.5.0"
}
}
18 tasks/options/yuidoc.js
View
@@ -0,0 +1,18 @@
+module.exports = {
+ compile: {
+ "name": "The ember-data API",
+ "description": "The ember-data API: a data persistence library for Ember.js",
+ "version": '<%= versionStamp %>',
+ "logo": "http://f.cl.ly/items/1A1L432s022u1O1q1V3p/ember%20logo.png",
+ "url": "https://github.com/emberjs/data",
+ "options": {
+ "paths": [
+ "packages/ember-data/lib",
+ "packages/activemodel-adapter/lib",
+ "packages/ember-inflector/lib"
+ ],
+ "exclude": "vendor",
+ "outdir": "docs/build"
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.