Skip to content

API documentation missing information on available global and command options. #429

@tkodev

Description

@tkodev

Such as --cwd and --config

Again, this is specifically for the API:

var Hexo = require('hexo');
var hexo = new Hexo(process.cwd(), {});
hexo.init().then(function(){
  hexo.call('generate', {}).then(function(){
    // ...
  });
});

and etc. The options used for the command line version exist for the javascript API version or am I confused at the usage of the API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions