|
| 1 | +==================================== |
| 2 | +Mattermost Documentation Style Guide |
| 3 | +==================================== |
1 | 4 |
|
| 5 | +The Mattermost documentation must be of high quality. It must be accurate and clear, and be presented with a style and tone that is appropriate for technical content. People who use Mattermost rely on the documentation to get their jobs done. We don't want to see an installation of Mattermost delayed because the documentation has an error or is difficult to understand. |
| 6 | + |
| 7 | +The style and tone must be consistent throughout the documentation. People need to feel confident that what they're reading is carefully attended to by its creators. and that we have taken care and have paid attention to detail. |
| 8 | + |
| 9 | + |
| 10 | +Goals of the style guide |
| 11 | +======================== |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +Document Structure |
| 17 | +================== |
| 18 | + |
| 19 | +The reStructuredText specification allows for a certain degree of flexibility in the use of overline and underline characters to delineate sections. However, for consistency and ease of use, the Mattermost documentation will use the following convention: |
| 20 | + |
| 21 | +Page title: overline and underline character will be the = character. For example: |
| 22 | +=============== |
| 23 | +Creating a team |
| 24 | +=============== |
| 25 | +equivalent to H1 |
| 26 | + |
| 27 | +Level one headings: ============ (h2) |
| 28 | +Level two headings: ------------ (h3) |
| 29 | +Level three headings: ^^^^^^^^^^^^^ (h4) |
| 30 | + |
| 31 | +Note that in a properly chunked set of documents, with only one topic per file, you should never need more than two section levels: One for the page title, and one for each section on the page. However, we can't all reach Nirvana at once, so feel free to use sub sections if they're needed. |
| 32 | + |
| 33 | +filepath - monospace (directory paths, file names) |
| 34 | +inline code - monospace |
| 35 | +code block - monospace |
| 36 | +Menu selection - bold |
| 37 | +UI selection - bold (includes buttons and links, names of controls, field names) |
| 38 | +text that user enters - monospace |
| 39 | +references - italic |
| 40 | + |
| 41 | +relative links only, except of course for pages that are external to the docs |
| 42 | + |
| 43 | +Main screen, Navigation panel, Message Details panel |
| 44 | + |
| 45 | +main menu? 3-dot menu? three dot menu? |
| 46 | + |
| 47 | +how to link to other documents. ie, not click here |
| 48 | + |
| 49 | +should be no need for section breaks, ie ---------- that gets output as <br> |
| 50 | + |
| 51 | +avoid documenting features; instead, document tasks. describe things that people want to do |
| 52 | + |
| 53 | +simple sentences, less than 25 words. |
| 54 | + |
| 55 | +Cross references |
| 56 | +^^^^^^^^^^^^^^^^ |
| 57 | + |
| 58 | +Use cross references carefully. |
0 commit comments