3. PR code specification¶
Article Contribution PR Operating Guidelines¶
If you are already a community contributor, you can directly complete the PR submission as follows;If you first try PR contribution, please refer to document。
1. Preset condition of PR: Fork FISCO-BCOS-DOC to personal github warehouse¶
Step1: Enter Register GitHub account
step2: Fork FISCO-BCOS-DOC To personal warehouse
2. Branch Description¶
PR must mention the release-3 branch of FISCO-BCOS-DOC
3. Essential tool: git click for reference¶
Mac system: brew install git 2.windows system: click download and install
Ubuntu system: sudo apt install git 4.centos system: sudo yum install git
4. Main git commands:¶
(The following steps only need to be performed once)
Will the official FISCO-BCOS-DOCAdd as upstream: git remote add upstream
(The following steps should be done every time)
Before submitting a PR, run the following command to synchronize the latest official documents:
Pull the latest document from the official document release-3 branch: git fetch upstream release-3
Synchronize the latest document of the official document release-3 branch to the local: git rebase update / release-3
(Note: This step may have a conflict, if there is a conflict, please resolve the conflict, click the reference conflict resolution)
Push the synchronized document to your personal git repository: git push origin -f
Main commands for submitting personal documents
git add, git commit, git push, etc. click for reference。
5. Document format description¶
The content of the article must be edited in markdown format, click to refer to markdown syntax。
(This step is not mandatory) Before submitting a PR, it is recommended to build readthedocs based on the documents of the personal repository, check whether the built documents display as expected, and attach a link to the readthedocs that describes the personal build when submitting a PR。
Click on the reference readthedocs build methodand the readthedocs configuration options of FISCO-BCOS-DOC refer to the following table:
| Setting Fields | Setting Results |
|---|---|
| Default Branch | release-3 |
| Document Type | Sphinx |
| Required Documents | repuirements.txt |
| Python interpreter | CPython |
| Using System Packages | Yes |
| Python configuration file | conf.py |
6. Reviewer Feedback and Integration¶
After submitting the PR, Reviewer will directly feedback the modification comments on GitHub, you can also add a small assistant WeChat FISCOBCOS010 for direct communication;Finally, when Reviewer joins the PR, your article is entered!
Article PR Contribution Writing Norms¶
-The initial signature is the name of the contributor, which can also show the company or school to which the individual belongs, for example, by Zhang San| FISCO BCOS Core Developer;
The content of the article contains the introduction as far as possible, the natural connection and transition between paragraphs, and the summary at the end of the article;
The article should ensure that the sentence is smooth and free of speech disorders, and that the presentation does not cause misunderstanding by the reader; -Practical articles need to ensure that the technical points are accurate and can complete the test run; -If the article involves links to relevant technical documents or code repositories, please use the FISCO BCOS official link to avoid link failure。