Skip to content

Commit

Permalink
Update API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jul 13, 2014
1 parent 58888d8 commit 598fb07
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "hexo",
"version": "2.7.1",
"version": "2.8.0",
"private": true,
"dependencies": {
"hexo-renderer-ejs": "^0.1.0",
"hexo-renderer-marked": "^0.1.0",
"hexo-renderer-stylus": "^0.1.0",
"hexo-renderer-jade": "^0.1.0",
"hexo-yuidoc": "^0.2.0",
"hexo-generator-sitemap": "^0.1.2",
"hexo-generator-feed": "^0.1.1"
"hexo-yuidoc": "^0.2.2",
"hexo-generator-sitemap": "^0.2.0",
"hexo-generator-feed": "^0.2.0"
},
"devDependencies": {
"gulp": "^3.6.2",
Expand Down
2 changes: 1 addition & 1 deletion source/_yuidoc/index.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion source/docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ Generators are used to generate static files based on processed source files.
### Syntax

``` js
hexo.extend.generator.register(function(locals, render, callback){
hexo.extend.generator.register(name, function(locals, render, callback){
// ...
});
```

Parameter | Description
--- | ---
`name` | Generator name
`fn` | Generator function

`fn` is invoked with 3 arguments:

Argument | Description
--- | ---
`locals` | [Site variables](variables.html)
Expand Down

0 comments on commit 598fb07

Please sign in to comment.