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.

TypeReader’s questionSuggested structure
ConceptWhat is it, and when should I use it?One-sentence definition → Use cases → Key relationships → Example → Next step
TutorialHow do I complete a task?Goal → Prerequisites → Ordered steps → Expected result → Common questions
MechanismWhy does it work this way?Question → Participants → Flow or relationships → Rules and boundaries → Example
ReferenceWhat does a field, option or rule mean?Scope → Definition table → Example → Constraints → Related documentation
TroubleshootingWhy did I not get the expected result?Observable symptom → Checks in order → Causes and fixes → Recovery criteria
FAQWhat 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 Steps for 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 Tabs for alternative environments or approaches to the same task. Keep required steps visible.
  • Use Callout for prerequisites or constraints that affect understanding or execution. Keep ordinary explanations in the body.
  • Use Cards for independent introductions and next steps; use Accordions for 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

  1. Read these guidelines, the image guidelines and the repository’s component and brand documentation.
  2. Identify the reader, main question, document type and verifiable sources.
  3. Write an outline first. Ask about missing facts or retain clearly identified open questions.
  4. Complete the body, then choose useful components, screenshots or explanatory images.
  5. Check names, conditions and constraints across text and images. Complete alternative text, links and all three languages.
  6. Check navigation and paths, preview desktop and mobile pages, and run the repository’s required checks.

Was this page helpful?

On this page