Miss any of our Open RFC calls?Watch the recordings here! »

hexo-hook

0.0.2 • Public • Published

hexo-hook

hexo-hook is a hexo plugin to listen webhook push event to update locate files and generate static files in public folder.

If your hexo included hexo-server, this plugin use the same port in server config. The default http port of hexo-hook is 8000. For now hexo-hook only can receive the json content event. hexo-hook will pull the master branch when receive the request from github.

After start hexo with this plugin, you can add webhook in Github like this: https://your.domain.com:8000/hook

Please remove the posts folder under your hexo root path if you change the repository url in _config.yml.

Install

​```shell $ npm install hexo-hook --save


## Usage
​```shell
hexo hook 

Example

webhook:
  port: 8000
  repository:
    source:
      url: 'https://github.com/alycat-Yan/test.git'
      sub: '/'
      secret: '123'
 

url is your github repository url. For now it only support github webhook.

sub is the path which your markdown files exist.

secret is the secret you set in webhook config page.

License

MIT

Install

npm i hexo-hook

DownloadsWeekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

25 kB

Total Files

12

Last publish

Collaborators

  • avatar