Skip to content

Latest commit

 

History

History
135 lines (93 loc) · 3.19 KB

CONTRIBUTING.md

File metadata and controls

135 lines (93 loc) · 3.19 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 reStructureText syntax and commit it to the repo.

  • Send a pull request

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

Document format

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 html
  5. Open the documents

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

Credit

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

如何贡献

如何改善文档

  • 提交 issue

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

  • 提交 pull request

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

文档格式

环境配置

  1. 创建虚拟环境

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

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

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

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

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

署名

参与任何形式的贡献,相关的 GitHub 用户名会在文档中提及。