Contributing

  • 2018-12-03

Development

We welcome you to join the development of Hexo. This document will help you through the process.

Before You Start

Please follow the coding style:

Workflow

  1. Fork hexojs/hexo.
  2. Clone the repository to your computer and install dependencies.

    1
    2
    3
    4
    $ git clone https://github.com/<username>/hexo.git
    $ cd hexo
    $ npm install
    $ git submodule update --init
  3. Create a feature branch.

    1
    $ git checkout -b new_feature
  4. Start hacking.

  5. Push the branch:

    1
    $ git push origin new_feature
  6. Create a pull request and describe the change.

Notice

  • Don’t modify version number in package.json.
  • Your pull request will only get merged when tests passed. Don’t forget to run tests before submission.

    1
    $ npm test

Updating Documentation

The Hexo documentation is open source and you can find the source code on hexojs/site.

Workflow

  1. Fork hexojs/site
  2. Clone the repository to your computer and install dependencies.

    1
    2
    3
    $ git clone https://github.com/<username>/site.git
    $ cd site
    $ npm install
  3. Start editing the documentation. You can start the server for live previewing.

    1
    $ hexo server
  4. Push the branch.

  5. Create a pull request and describe the change.

Translating

  1. Add a new language folder in source folder. (All lower case)
  2. Copy Markdown and template files in source folder to the new language folder.
  3. Add the new language to source/_data/language.yml.
  4. Copy en.yml in themes/navy/languages and rename to the language name (all lower case).

Reporting Issues

When you encounter some problems when using Hexo, you can find the solutions in Troubleshooting or ask me on GitHub or Google Group. If you can’t find the answer, please report it on GitHub.

  1. Represent the problem in debug mode.
  2. Run hexo version and check the version info.
  3. Post both debug message and version info on GitHub.

扫码领红包

2018双11超级红包
PC访问链接: 2018双11超级红包 预售开启 汇聚全球潮流新品

淘口令:¥20Y0b6q4eHR¥ (复制此行再打开手机淘宝客访问)

最后更新: 2018年12月03日 09:29

原始链接: https://cyc.oy99.com/docs/contributing.html

× 多少都行~
打赏二维码
×
  • {title}