Writing guidelines
Organise documentation around readers’ questions and keep content, components and images consistent.
Last updated on
These guidelines are for documentation authors and AI maintainers. Identify the reader’s question before choosing a structure. See the image guidelines for visual styles and generation prompts.
See the content formats reference for rendered examples and common syntax. The introduction follows the reading flow of a concept article; component demonstrations belong in the reference and are selected as needed.
Choose a document type
Give each article one main question to answer. Open by explaining what readers will understand, accomplish or find.
| Type | Reader’s question | Suggested structure |
|---|---|---|
| Concept | What is it, and when should I use it? | One-sentence definition → Use cases → Key relationships → Example → Next step |
| Tutorial | How do I complete a task? | Goal → Prerequisites → Ordered steps → Expected result → Common questions |
| Mechanism | Why does it work this way? | Question → Participants → Flow or relationships → Rules and boundaries → Example |
| Reference | What does a field, option or rule mean? | Scope → Definition table → Example → Constraints → Related documentation |
| Troubleshooting | Why did I not get the expected result? | Observable symptom → Checks in order → Causes and fixes → Recovery criteria |
| FAQ | What is the answer to a short question? | Direct answer → Necessary conditions or exceptions → Further reading |
A quick start should use one bounded, verifiable task to help readers obtain their first result. Link longer FAQ explanations to a separate article.
Organise text and components
Use concrete, direct sentences and one main idea per paragraph. Give headings descriptive names, start step headings with verbs and make link text describe its destination. Keep product terms, interface names and diagram labels consistent.
- Use
Stepsfor ordered actions. Explain each action, required input and expected result. - Use tables for comparisons, field definitions and rule mappings; use lists for parallel conditions.
- Use
Tabsfor alternative environments or approaches to the same task. Keep required steps visible. - Use
Calloutfor prerequisites or constraints that affect understanding or execution. Keep ordinary explanations in the body. - Use
Cardsfor independent introductions and next steps; useAccordionsfor short answers or optional details. - Distinguish input from output in code blocks and identify the language or filename. Use task checklists only for criteria readers can verify.
Use bold sparingly for keywords. Reserve link underlines for links. Reuse shared MDX components and typography instead of setting article-specific font sizes, colours or block spacing.
Use images to aid understanding
Important overviews, topics and long articles may use a banner; every article does not need one. Use explanatory images for relationships, workflows or information hierarchies that a short paragraph cannot explain clearly.
Prefer verified interface screenshots for real operations. Generated diagrams must not pose as real interfaces. Place an image near its explanation, provide alternative text and add a caption when useful. Keep essential steps, conditions and conclusions in the body as well. Follow the image guidelines for visual details.
Verify facts and distinguish examples
Support product behaviour with evidence such as confirmed requirements, the actual interface, code behaviour or information from the responsible owner. Verify unclear entry points, permissions, defaults and support boundaries before writing them as facts.
Existing demo materials show layout, not proof that features have shipped. Mark examples as examples or illustrations. A task description is not a configuration file, and sample text is not an executable command. Replace demo materials and their notices once the production content is confirmed.
Keep all three languages aligned
Simplified Chinese, Traditional Chinese and English should share document paths and information structure. Translate naturally while preserving feature boundaries, steps, exceptions, image meanings and link destinations. When a fact changes, check the other languages too.
Workflow for AI authors
- Read these guidelines, the image guidelines and the repository’s component and brand documentation.
- Identify the reader, main question, document type and verifiable sources.
- Write an outline first. Ask about missing facts or retain clearly identified open questions.
- Complete the body, then choose useful components, screenshots or explanatory images.
- Check names, conditions and constraints across text and images. Complete alternative text, links and all three languages.
- Check navigation and paths, preview desktop and mobile pages, and run the repository’s required checks.
Was this page helpful?
Image style and generation
Create consistent brand-blue ASCII banners with the local Banner Studio; retain the A fine line-art rules and prompts for in-article explainers.
Content formats reference
A content-format catalogue for AI authors and maintainers, with purposes, copyable syntax and rendered examples.