You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/process/documentation-guidelines.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Documentation Conventions
2
2
3
+
**Note:** This document is in the process of being revised. See the new work-in-progress version here: <ahref="sg_mattermost-doc-style.html">Mattermost Documentation Style Guide</a>.
4
+
5
+
----
6
+
3
7
The most important thing about documentation is getting it done and out to the community.
4
8
5
9
After that, we can work on upgrading the quality of documentation. The below chart summarizes the different levels of documentation and how the quality gates are applied.
Structure and organization is an important part of a document's ease of use and its understandability.
6
+
7
+
Document title
8
+
==============
9
+
10
+
Use a title that accurately reflects the content of the document. People scan the table of contents looking for documents; it's often faster than using the built-in search engine.
11
+
12
+
Use title case for document titles. For more information and an example of capitalization, see :ref:`capital`.
13
+
14
+
Introductory paragraph
15
+
======================
16
+
17
+
Each page should have an introduction that acts as a short description of the document. The short description should be a single paragraph of no more than 3 sentences. Keep in mind that the description is displayed in the search results along with the page title. People read the description to help them decide if the document is the one that they want.
18
+
19
+
Document sections
20
+
=================
21
+
22
+
To make pages easier for people to quickly scan for the content that they're looking for, break your document up into logical sections. Each section should have a title, and the title should relate to the content of the section.
23
+
24
+
Avoid subsections. If you find that you need subsections, quite often the document is too long, or too complex, and needs to be broken up into several pages.
Write documents in English, and use American spelling conventions.
10
+
11
+
Commas
12
+
======
13
+
14
+
As a general rule, the serial comma results in greater clarity. However, there are always edge cases where a serial comma adds confusion to a sentence. Therefore, the Mattermost documentation will use the following rule for commas:
15
+
16
+
Use the serial comma unless doing so decreases clarity and understanding of the sentence.
17
+
18
+
Good
19
+
The cows ran from wolves, coyotes, and mosquitoes.
20
+
21
+
Not Good
22
+
The cows ran from wolves, coyotes and mosquitoes.
23
+
24
+
Tone
25
+
====
26
+
27
+
Use a direct, impartial tone. Most readers of the documentation are looking for answers and solutions to their problems; they are not looking for entertainment.
28
+
29
+
Good
30
+
Magna Lorem duis mollit mollit minim amet proident incididunt ut consectetur.
31
+
32
+
Not good
33
+
Sint nostrud veniam esse pariatur laboris in esse commodo aute duis deserunt amet dolore eu.
34
+
35
+
.. _capital:
36
+
37
+
Capitalization
38
+
==============
39
+
40
+
Use title case for page titles and sentence case for section titles.
41
+
42
+
Title case
43
+
Grammar, Spelling, and Mechanics
44
+
45
+
Sentence case
46
+
Language and spelling
47
+
48
+
Voice
49
+
=====
50
+
51
+
Use active voice in preference to passive voice. Active voice has the subject of a sentence doing the action, and in passive voice, the subject has an action done to it. Use passive voice when you want to emphasize the action more than the subject.
52
+
53
+
Active voice
54
+
Veniam mollit ipsum excepteur dolore deserunt do aute incididunt nostrud enim adipisicing.
55
+
56
+
Passive voice
57
+
Nulla est adipisicing aliquip eu dolor deserunt magna culpa consectetur.
58
+
59
+
Numbers
60
+
=======
61
+
62
+
Use decimal numbers except when the number is the first word of a sentence. Use commas to make long numbers easier to read.
63
+
64
+
Good
65
+
Three cows ran for 6 kilometers when they saw 2,300,097 mosquitoes chasing them.
Copy file name to clipboardExpand all lines: source/process/sg_mattermost-doc-style.rst
+36-23Lines changed: 36 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,41 +2,48 @@
2
2
Mattermost Documentation Style Guide
3
3
====================================
4
4
5
+
This is the Mattermost style guide for documentation. It acts as a reference for writers and editors to ensure that the Mattermost documentation is consistent and clear.
6
+
7
+
The style guide is definitely *not* intended to slow down or otherwise impede contributions, which are always welcome. No contribution will be rejected due to non-conforming style. Don't worry if you don't have time to read and comply with the guide; submit your work anyway.
8
+
5
9
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
10
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.
11
+
12
+
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 should use a single convention for title underlines.
8
13
9
14
10
-
Goals of the style guide
11
-
========================
15
+
Use the = character for the overline and underline. For example:
12
16
17
+
::
18
+
19
+
==================
20
+
Document structure
21
+
==================
13
22
23
+
Note that unlike Markdown, overlines and underlines in reStructuredText must be at least as long as the title text.
14
24
25
+
Section titles
26
+
==============
15
27
16
-
Document Structure
17
-
==================
28
+
If your document has more than one section, use the = character for the section title underline. For example:
18
29
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:
30
+
::
31
+
32
+
Section titles
33
+
==============
20
34
21
-
Page title: overline and underline character will be the = character. For example:
22
-
===============
23
-
Creating a team
24
-
===============
25
-
equivalent to H1
35
+
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 subsections if they're needed.
26
36
27
-
Level one headings: ============ (h2)
28
-
Level two headings: ------------ (h3)
29
-
Level three headings: ^^^^^^^^^^^^^ (h4)
37
+
If you do need subsections, use the following underline characters:
30
38
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.
0 commit comments