Skip to content

Latest commit

 

History

History
134 lines (88 loc) · 3.02 KB

CONTRIBUTING.md

File metadata and controls

134 lines (88 loc) · 3.02 KB

How to contribute

Ways to improve the documents

  • Submit an issue

    If you find errors in documents or want to improve, this is the easiest way to help. You can put your document in any format in the issue comments, then a core developer will format it into Markdown syntax and commit it to the repo.

  • Send a pull request

    This way is for those who are familiar with Git workflow and Markdown. A PR needs to be reviewed by at least one person before merging.

Document format

Please follow https://github.com/sparanoid/chinese-copywriting-guidelines/blob/master/README.en-US.md.

Also, currently we're using Markdownlint and Autocorrect to ensure the quality of the documents. CI would automatically run check on the PRs, and failed PRs would not be merged.

Environment setup

  1. Create a virtual environment

    python3 -m venv .env
  2. Activate the virtual environment

    # bash
    source .env/bin/activate
    # fish
    source .env/bin/activate.fish
  3. Install dependencies

    pip install -r requirements.txt
  4. Build the documents

    make
  5. Open the documents

    # macOS/fish
    open site/index.html
    # Linux
    xdg-open site/index.html

Credit

For those who improved the documents, the GitHub username will be mentioned in the document.

如何贡献

如何改善文档

  • 提交 issue

    如果你发现文档中有错误,你可以在 issue 中提出。你也可以在 issue 中提交改进后的文档。 Issue 中提交的文档可以用任何格式撰写,后面我们会把文档格式化成标准的 Markdown 格式。

  • 提交 pull request

    如果你熟悉 Git 的协作流程, 也熟悉 Markdown 格式, 请 pull request。 注意 PR 在合并前至少需要一个人进行 review。

文档格式

环境配置

  1. 创建虚拟环境

    python3 -m venv .env
  2. 激活虚拟环境

    # bash
    source .env/bin/activate
    # fish
    source .env/bin/activate.fish
  3. 安装依赖

    pip3 install -r requirements.txt
  4. 构建帮助文档

    make
  5. 查看构建的帮助文档

    # macOS/fish
    open site/index.html
    # Linux
    xdg-open site/index.html

署名

参与任何形式的贡献,相关的 GitHub 用户名会在文档中自动生成。