- We will collect knowledges about
CYFShere. - Anyone can submit their insights or introductory documents, it may be employed in the official documentation repository.
- You can learn here when you have some problems.
- You can make an issue or discussion when you cannot fix your problem yourself or you found an error.
- There are 3 branchs in the repository:
| Branch | Description | Inclusion conditions | Manager |
|---|---|---|---|
| official | Documents approved by the team | Accurate content, high level of writing, easy to understand | Senior developers of relevant modules + project administrators |
| checked | Documentation reviewed by the team | The content is accurate, but the writing is flawed and difficult to read | Senior developers of relevant modules or project administrators |
| draft | Unchecked document | There may be errors in the content, which need to be corrected. If you find an error, you can initiate a discussion or submit a Pull request to correct it. |
Any one can update the repository |
-
When you want to submit a document, you should do as follow:
- Fork the branch
draftto your own repository. - Finish your documents, create a new one or update an exist one.
- Post a
Pull requestto the branchdraftin official repository. - Wait the team to merge your documents, you can also create a issue or discussion to publish your documents.
- Fork the branch
-
When someone with
writepermissions find aPull request, he can do as follow:- If obvious problems are found, reject it and note the reason.
- Otherwise merge it to the branch
draft.
-
The managers periodically compares
draftandcheckedbranches, They will check theCommits as follow:- Make a
Patchinclude the proofreadedCommits in thedraftbranch. - Ignore the
Commits with errors and feedback to the writer(create a discussion and @ the auther?).
- Make a
-
How to decide to include the
Patch?-
Issue a vote on
Patch, the lead developers of related modules and managers are invited to join. -
They will give each commit a score while voting.
-
If the vote is passed, the
Patchwill be included in thecheckedbranch, otherwise the error in it will be noted. -
If the score is high enough, the
Patchwill be included in theofficialbranch.Notes: We use
cherry-pickorformat-patchto merge each commit, instead ofmergeorrebase, to avoid merging unqualified commits into. Therefore, we should submit as little and complete content as possible each time.
git cherry-pick <commit-hash> git format-path ... -
