yindeqiang / giab

a tool for "giab" (github issue as blog) guys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

giab

A tool for "giab" (github issue as blog) guys

This tool will generate an issue(blog post) list in your README.md.

Install

npm install giab

Usage

  1. Go to your repository's root dir

  2. Make sure you have a readme file named README.md

  3. Add placeholder to README.md, like this:

<!--giab:issue_list_start-->
your articles will be shown here
<!--giab:issue_list_end-->
  1. Add a config file named .giabrc, sample content:
{
  "type": "basic",
  "username": "simongfxu",
  "password": "password here",
  "issues": {
    "repo": "simongfxu.github.com",
    "owner": "simongfxu"
  }
}

GitHub token also supported to hide your password.

  1. Edit .gitignore file in your repository's root dir, add a line
.giabrc

NOTE: this is very important, I do not think you will let everybody know your password.

  1. Execute the following command
node node_modules/giab

That is all!

Example

About

a tool for "giab" (github issue as blog) guys

License:MIT License


Languages

Language:JavaScript 100.0%