Last modified by Vincent Massol on 2026/11/30 23:03

Show last authors
1 Each documentation page must have stable headings configured by default. The headings are automatically generated as level 1 headings for the page when [[creating a documentation page>>xwiki:documentation.extensions.user.documentation.create-documentation-page.WebHome]] or when adding the ##xobject## of type [[##DocApp.Code.DocumentationClass##>>xwiki:DocApp.Code.DocumentationClass]] (if you are an [[advanced user>>xwiki:documentation.xs.user.content-edit.simple-advanced.WebHome||anchor="HAdvancedMode"]]). To follow this rule, make sure that when [[applying Diataxis>>dev:Community.DocGuide.Diataxis.WebHome]], you also correctly complete the other fields that are provided by the [[documentation page structure>>xwiki:documentation.extensions.user.documentation.create-documentation-page.page-structure.WebHome]]:
2
3 |= Field|=What it contains|=Image
4 |**Summary**|(((
5 * One complete plain-text sentence of about 150 characters at most, without links or macros, saying what the page gives that its title doesn't say. It has its own subject: since it's read as the first paragraph of the page, it never starts with "Its", "Their" or another word pointing back at the title. See [[One Question per Part>>||anchor="HOneQuestionperPart"]] for what to write in it.
6 * It's displayed as the first paragraph of the page, in the "More" table of the parent page, and as the description of the page when another page highlights it.
7 )))| {{image reference="SummaryField.png" size="large" alt="The Summary field, in edit mode, right above the main content"/}}
8 |**Content**|(((
9 * The main documentation content for the page type.
10 * The main content continues from where the summary stops: don't restate the summary in its first sentence.
11 * If additional headings are needed, place them under this heading as level 2 headings or lower.
12 * A troubleshooting page describes a single problem, and does so in the "Symptom", "Cause" and "Solution" fields of a Troubleshooting object, its content staying empty: see [[Create a Documentation Page for a Troubleshooting Problem>>xwiki:documentation.extensions.user.documentation.documentation-xwiki-org.create-documentation-page-troubleshooting-problem.WebHome]]. Several problems are documented as a parent page linking one troubleshooting page per problem.
13 * Make sure you follow the [[Documentation Style>>dev:Community.DocGuide.DocumentationStyle.WebHome]].
14 )))| {{image reference="ContentField.png" size="large"/}}
15 |**FAQ**|(((
16 * Level 2 headings phrased as questions that a user, administrator, or developer might have while using the documented feature or reading the page. Keep answers to 1–2 sentences.
17 * This field is optional.
18 * You can add a maximum of 5 FAQ entries, and the FAQ content must not exceed 25 lines.
19 * If more space is needed, create a separate documentation page, such as a [[troubleshooting page>>xwiki:documentation.extensions.user.documentation.documentation-xwiki-org.create-documentation-page-troubleshooting-problem.WebHome]] for an answer describing a problem. Otherwise, a [[documentation violation>>xwiki:documentation.extensions.user.documentation.documentation-xwiki-org.xwiki-org-checks.WebHome]] warning will be triggered.
20 )))| {{image reference="FAQField.png" size="large"/}}
21 |**Highlights**|(((
22 * A short list of the page's most important child pages, as a plain list of links. Each highlight is described by the summary of the highlighted page.
23 * See [[Highlights on a Page>>Community.DocGuide.HighlightsPage.WebHome]] for when to fill this field, the maximum number of highlights, and the syntax.
24 )))| {{image reference="HighlightedField.png" size="large"/}}
25 |**Related**|(((
26 * Links to pages that cover the same subject but are not child pages of the current page.
27 * Child pages are automatically listed in the More section, so do not add them here.
28 * If the page is a [[top-level page>>xwiki:documentation.xs.user.page.nested-pages.relations.WebHome]] (its parent is a target/audience page, such as one under ##/user/##, ##/admin/##, or ##/dev##), you must include links to top-level pages covering the same topic for other target audiences, when they exist.
29 ** Link labels must follow a standard format: <exact page title> (for <Target>s), where the title matches the target page exactly, including capitalization, and <target> is one of Users, Administrators, or Developers. For example: {{code language="none"}}Like (for Users){{/code}}
30 * You shouldn't add additional text besides the link.
31 )))|{{image reference="RelatedField.png" size="large"/}}
32
33 Most of the times, a documentation page has also a Technical ID field that needs to be completed, through the object of type ##DocApp.Code.DocumentationExtensionClass##, as described here: [[Link the Documentation Page to its Extension>>Community.DocGuide.PageStructure.LinkDocumentationPageExtension.WebHome]].
34
35 == One Question per Part ==
36
37 Each part of a documentation page answers one question that no other part answers. If some text answers the question of another part, it's in the wrong part.
38
39 |=Part|=Question it answers|=Rules
40 |**Title**|What is this?|(((
41 * A name, not a sentence: a task for a How-to ("Replace the Code Macro with Prism.js"), a thing for a Reference ("Code Macro Configuration Properties"), a topic for an Explanation ("Formatting").
42 * The title rules of [[Diataxis>>dev:Community.DocGuide.Diataxis.WebHome]] still apply.
43 )))
44 |**Summary**|What does this page give me that the title doesn't say?|(((
45 * One complete sentence, with its own subject and verb, starting where the title stops: if you remove the words of the title, information must remain.
46 * "The configuration properties of the code macro" fails: it only repeats the title. "Its highlighting style and the largest attachment it accepts as source" fails: it's a fragment pointing back at the title, which reads oddly as the first paragraph. "The code macro takes its highlighting style from the configuration, and accepts attachments up to a maximum size as source." passes.
47 * How-to or Tutorial: the result the reader gets.
48 * Reference: what it covers.
49 * Explanation: the idea, in one sentence.
50 * Describe the content, not the page: no "This page describes…" or "Learn how to…".
51 )))
52 |**Content**|What's the substance?|(((
53 * The first sentence doesn't restate the summary. This usually means deleting the intro sentence, which already is the summary.
54 * How-to or Tutorial: the summary is the intro, so write at most one prerequisite sentence, then step 1.
55 * Reference: the table or the sections straight away. A "Description" section that restates the summary keeps only the facts it adds.
56 )))
57 |**Content of a hub page** (an Explanation with child pages)|How do the child pages fit together?|(((
58 * Explain the topic as a whole: what it lets you do, how the parts relate, which page fits which need.
59 * Link each child page where the explanation reaches it, inside a sentence that still says something without the link.
60 * Never describe a child page: a sentence that would work as the summary of a child page belongs in that summary, which the "More" table and the Highlights already display.
61 * Never list child pages bare ("See X and Y."), and never describe features without linking the pages that document them.
62 )))
63 |**Highlights**|Which child pages should I read first?|Chosen on the parent page; their descriptions come from the summaries of the child pages. See [[Highlights on a Page>>Community.DocGuide.HighlightsPage.WebHome]].
64 |**More**|What's under this page?|Generated automatically: the title, summary and type of every child page.
65 |**Related**|What else is there, outside the child pages?|See the Related field above.
66
67 To check a page as a whole, read its title, its summary, its content, then the summaries of its child pages, in that order. When one says what an earlier one already said, cut the later one.
68
69 For example, for the hub page "Formatting" of the code macro documentation for developers:
70
71 * Summary: "A Java component can extend the code macro in two ways: with new sources of code and with new languages."
72 * Content: "The "code" Macro reads its code from the macro content, an attachment or a script variable, through its ##source## parameter, and highlights it with Pygments. Both ends accept components: a source type makes ##source## read code from somewhere new, as [Display Server Files with the Code Macro] does with files on the server; a highlighter handles a language Pygments doesn't know, as [Write a Log Highlighter for the Code Macro] does for logs."
73 * More: both tutorials, each with its own summary.

Get Connected