Skip to content

Commit 9d1a753

Browse files
committed
Break up into separate files and add more content
1 parent 7933e15 commit 9d1a753

File tree

5 files changed

+151
-25
lines changed

5 files changed

+151
-25
lines changed

source/guides/core.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ Development Process
1414
/process/release-process*
1515
/process/accepting-pull-request*
1616
/process/community-systems*
17-
/process/documentation-guidelines*
17+
/process/documentation-guidelines.md
1818

19+
Documentation Style Guide
20+
=========================
21+
22+
.. toctree::
23+
:maxdepth: 3
24+
25+
Introduction </process/sg_mattermost-doc-style.rst>
26+
/process/sg_document-structure.rst
27+
/process/sg_grammar-spelling-mechanics.rst
1928

2029
Joining the Team
2130
=========================
@@ -29,4 +38,3 @@ Joining the Team
2938
/process/security*
3039
/process/training*
3140
/process/people-ops*
32-

source/process/documentation-guidelines.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Documentation Conventions
22

3+
**Note:** This document is in the process of being revised. See the new work-in-progress version here: <a href="sg_mattermost-doc-style.html">Mattermost Documentation Style Guide</a>.
4+
5+
----
6+
37
The most important thing about documentation is getting it done and out to the community.
48

59
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.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
==================
2+
Document structure
3+
==================
4+
5+
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.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
================================
2+
Grammar, spelling, and mechanics
3+
================================
4+
5+
6+
Language and spelling
7+
=====================
8+
9+
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.
66+
67+
Text highlighting
68+
=================
69+
70+
filepath - monospace (directory paths, file names)
71+
inline code - monospace
72+
code block - monospace
73+
Menu selection - bold
74+
UI selection - bold (includes buttons and links, names of controls, field names)
75+
text that user enters - monospace
76+
references - italic
77+

source/process/documentation-guidelines.rst renamed to source/process/sg_mattermost-doc-style.rst

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,48 @@
22
Mattermost Documentation Style Guide
33
====================================
44

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+
59
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.
610

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.
813

914

10-
Goals of the style guide
11-
========================
15+
Use the = character for the overline and underline. For example:
1216

17+
::
18+
19+
==================
20+
Document structure
21+
==================
1322

23+
Note that unlike Markdown, overlines and underlines in reStructuredText must be at least as long as the title text.
1424

25+
Section titles
26+
==============
1527

16-
Document Structure
17-
==================
28+
If your document has more than one section, use the = character for the section title underline. For example:
1829

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+
==============
2034

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.
2636

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:
3038

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.
39+
::
40+
41+
Subsection One
42+
--------------
43+
44+
Subsection Two
45+
``````````````
3246

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
4047

4148
relative links only, except of course for pages that are external to the docs
4249

@@ -52,7 +59,13 @@ avoid documenting features; instead, document tasks. describe things that people
5259

5360
simple sentences, less than 25 words.
5461

62+
Steps: Each step should describe one action. Each step should be a complete sentence.
63+
64+
avoid noun clusters. that is, three or more nouns in a row
65+
66+
Use might or can instead of may. use 'may' only when giving permission.
67+
5568
Cross references
56-
^^^^^^^^^^^^^^^^
69+
================
5770

5871
Use cross references carefully.

0 commit comments

Comments
 (0)