Skip to content

Latest commit

 

History

History
116 lines (73 loc) · 4.8 KB

CONTRIBUTING-EN.md

File metadata and controls

116 lines (73 loc) · 4.8 KB

EMQX Documentation Contributing Guide

Thank you for your contributions to EMQX open-source project.

Table of Contents

Documentation Writing Guide

To ensure consistency throughout all EMQX documentation, we kindly request all contributors reference our Documentation Writing Guide. This guideline provides detailed instructions on document directory configuration and Markdown writing specifications.

How to contribute

EMQX's documentation is published at https://docs.emqx.io/. You can make contributions in several different ways listed below.

Note: You will need a GitHub account to make contributions. In case you do not have one, you may follow the instructions in GitHub registration page to create one.

Request a change

Click on Edit this page or Request docs changes in the top right corner of each page of the documentation site https://docs.emqx.io/ will take you directly to the Edit or Issue pages on the GitHub site, which means you don't need to know much about Git or Markdown.

You can also directly submit an issue here from this repo's issues page.

This is similar to clicking Request doc changes on a published docs page, but if you manually file an issue you need to fill in links to the related pages.

edit-online-cn

Online editing

Fork

As you can see above, when you click on Edit this page in the top right corner of the documentation site, you will be taken to the following page on GitHub, follow the instructions, and click Fork this repository.

github-fork

Commit

Click Fork this repository to jump to the document editing page and start editing your document. After completing editing, you need to enter the title and description of this submission at the bottom of the page to complete your submission.

You need to ensure that the title and description clearly describe what you are modifying.

github-commit

Pull request

Click on Propose changes above and you will be redirected to the following page, click on Create pull request to submit.

github-pr

After you have jumped to the following page, confirm the pull request information and click Create pull request again to complete this submission.

github-pr-confirm

Local editing

Local editing requires contributors to have some Git knowledge. We recommend first-time contributors to directly use the Online editing method above to contribute documents.

  1. Open the document repository https://github.com/emqx/emqx-docs for Fork.

  2. Clone the forked repository into your local workspace and then go to the local directory and add the upstream repository.

    git remote add upstream https://github.com/emqx/emqx-docs.git
    
  3. Checkout the earliest branch which is subject to the change. e.g. if an issue is found in EMQX 4.3, checkout release-4.3 with command git checkout --track upstream/release-4.3

  4. Optional: Checkout a work-branch git checkout -b my-first-pr-branch-for-emqx-4.3

  5. Edit, commit, and push the branch to your fork

    git commit -a -m 'docs(WHICH_DOC): fix xxxx in WHICH_DOC'
    git push origin my-first-pr-branch-for-emqx-4.3
    
  6. Create a Pull request from your forked repository to the upstream repository.

PR automatic check

Document projects will be automatically checked according to the rules in the Documentation Writing Guide. Only the PRs that passed the checks can be merged. If you encounter a markdownlint check failure when submitting PR, the error message will indicate which line in which file is the problem, so please follow the instructions to modify and update the PR.

How to get help

If you encounter any problems when contributing to the documentation, you can contact us for getting help in the following methods.