1e41f4b71Sopenharmony_ci# Writing Documents for a Release
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciTo help developers efficiently use each release, OpenHarmony provides related documents (such as the guide, API reference, development examples, release notes, API changelog, and FAQs) based on the feature requirements planned for the release. Some requirements involve new features and documents, and others require updates to the existing features and documents.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci## OpenHarmony Document Development Process
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciWhen planning a feature requirement, each service Special Interest Group (SIG) should determine whether the requirement involves new documents or updates to existing documents. If new documents or updates are involved, they should break down the requirement to the Docs SIG for document requirement tracking. The Docs SIG will provide document design suggestions based on the requirement and cooperate with the service SIG in document review, translation, and release. The document development process is shown below.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci![OpenHarmony Document Development Process](figures/docs-sig.png)
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## Actions for Service SIG Members or Other Developers
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ciMembers in each service SIG write basic documents for the release. Developers in the community are welcome to participate in the development of feature documents.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci### Breaking Down Document Requirements
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci1. Provide the **Documents** breakdown in the service SIG requirement issue. If new documents or updates to the existing documents are required, this requirement issue must be liked to the Docs SIG.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci2. View the feature requirements of the release in [OpenHarmony Roadmap]( https://gitee.com/openharmony/release-management/blob/master/OpenHarmony-RoadMap.md). This roadmap provides the release time plan, features to deliver, feature status, and SIG information.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci   If a feature requirement involves document delivery, add **Yes** in the **Need Docs** column so that the Docs SIG can track the document delivery.
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci### Developing Documents
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ciIf you are a member of a service SIG and are responsible for developing a new feature, you should cooperate with the Docs SIG to ensure that feature documents are available before the release. Any feature that is not provided with related documents may be removed from the release.
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ciIf you need help in the document structure, ask questions in the `#SIG-Docs` Zulip.
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci1. Contact the documentation owner in the Docs SIG for suggestions on document design by referring to [Document Reviewers](docs-reviewers.md).
31e41f4b71Sopenharmony_ci2. Obtain the corresponding [document template](template) and learn the document writing instructions.
32e41f4b71Sopenharmony_ci3. Provide detailed documents and usage instructions for the feature as much as possible. After you finish a draft, submit a pull request (PR) and include the link to the corresponding issue in the PR description.
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci### Submitting Documents for Review Through PRs
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ciTo ensure the accuracy of technical description, ask technical experts in the service SIGs to review all new contents. In addition, ask documentation experts in the Docs SIG to review the standardization of the documents. For details, see [Document Reviewers](docs-reviewers.md). To assign experts for review, enter the at sign (@) followed by the experts' usernames in the PR comment area. You can also provide review requirements in the `#SIG-Docs` Zulip.
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ciYou should update the draft against all the review comments. The PR can be merged only after both of the following conditions are met:
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci- The technical expert completes the review and provides the comment `TechApprove`.
41e41f4b71Sopenharmony_ci- The documentation expert completes the review and provides the comment `DocsApprove`.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci### Submitting Documents for Test
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ciSubmit your documents for version testing. Testers in the test SIG will submit issues to the Docs repository for any document issues they find. Confirm their comments and update the documents accordingly.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci### Submitting Documents for Translation
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci#### For Documents in the Docs Repository
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe OpenHarmony community provides Chinese and English documents. After the Chinese documents are reviewed, tested, and finalized, they can be submitted for translation in the form of issues. Translators in the Docs SIG will complete the English documents.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciTranslators submit English documents through PRs and provide the link to the corresponding issue in the PR description. To ensure the accuracy of every English document, the translator should ask technical experts in the service SIG for technical review, by entering the at sign (@) followed by the experts' usernames in the PR comment area. The technical experts can be the author of the Chinese document or others. For details, see [Document Reviewers](docs-reviewers.md).
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciThe translator should update the English document against all the review comments. The PR can be merged only after the following conditions are met:
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci- The technical expert completes the review and provides the comment `TechApprove`.
58e41f4b71Sopenharmony_ci- The English documentation expert completes the review and provides the comment `DocsApprove`.
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ci#### For Documents in Non-Docs Repositories
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ciTo provide a translation requirement for a document in a non-Docs repository (such as translation for API comments), submit a translation requirement issue in the Docs repository. Translators in the Docs SIG will complete the English document.
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ciWhen submitting a translation requirement, ensure that:
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci1. The Chinese document meets the quality standards stipulated for deliverables.
67e41f4b71Sopenharmony_ci2. The PR related to the Chinese document or the Chinese document path is provided.
68e41f4b71Sopenharmony_ci3. Temporary Chinese documents can be submitted to the [Docs Repository](https://gitee.com/openharmony/community/tree/master/sig/).
69e41f4b71Sopenharmony_ci
70e41f4b71Sopenharmony_ci## Actions for Docs SIG Members or Document Contributors
71e41f4b71Sopenharmony_ci
72e41f4b71Sopenharmony_ciMembers in the Docs SIG or document contributors should cooperate with each service SIG in reviewing and optimizing documents and translating Chinese documents into English. They should ensure that the output meets the release requirements.
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ci### Understanding Feature Plans of Each Release
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ciTo know feature and release plans of a release, you can attend the meeting [SIG Release](https://gitee.com/openharmony/release-management/blob/master/README.md) held on Friday every two weeks. Understand the release progress, requirement delivery progress, and document delivery progress.
77e41f4b71Sopenharmony_ci
78e41f4b71Sopenharmony_ciYou can also view feature requirements of a release in [OpenHarmony Roadmap](https://gitee.com/openharmony/release-management/blob/master/OpenHarmony-RoadMap.md). You can select feature issues marked with SIG_Docs and associated document PRs.
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci### Reviewing Chinese Documents Submitted in PRs
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ciWhen reviewing a feature document, you are advised to provide review suggestions from the following aspects:
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_ci#### Language description specifications
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci- The logical expression is smooth, and consistent terms are used.
88e41f4b71Sopenharmony_ci- The language is official, not colloquial.
89e41f4b71Sopenharmony_ci- There are no words that may infringe the intellectual property rights of third parties.
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ci#### Easy to understand
92e41f4b71Sopenharmony_ci
93e41f4b71Sopenharmony_ci- The content logic is clear and consistent.
94e41f4b71Sopenharmony_ci- The content is easy to read and understand. There are no obscure or uncommon words.
95e41f4b71Sopenharmony_ci- Clear steps are provided to guide developers to complete development tasks.
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci#### Chart and figures specifications
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci- Clear images with pictures and texts are used.
100e41f4b71Sopenharmony_ci- Each table has a table header and a table title. There are no single rows or single lists.
101e41f4b71Sopenharmony_ci- The hyphen (-) or the word "NA" is used if there is no content in a cell.
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci#### Website style
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci- If a PR involves the addition of a Markdown page, ensure that:
106e41f4b71Sopenharmony_ci  - The correct content template is used on the page.
107e41f4b71Sopenharmony_ci  - The definition of the Markdown file name complies with the specifications.
108e41f4b71Sopenharmony_ci  - The page is properly displayed in the navigation of the **README** file.
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ci- When a Markdown page is deleted or a Markdown page name is changed, ensure that:
111e41f4b71Sopenharmony_ci  - The page does not affect links in other documents in the community. You are advised to check the links locally.
112e41f4b71Sopenharmony_ci  - The contents in the **README** file are updated.
113e41f4b71Sopenharmony_ci
114e41f4b71Sopenharmony_ciFor more detailed specifications, see [Writing Instructions](writing-instructions.md).
115e41f4b71Sopenharmony_ci
116e41f4b71Sopenharmony_ci### Translating Documents from Chinese to English
117e41f4b71Sopenharmony_ci
118e41f4b71Sopenharmony_ciTranslation requirement issues in the community will be translated by translators in the Docs SIG. Document contributors are also welcome to take up translation requirement tasks and submit English documents through PRs.
119