Skip to content

Commit 8ea3bf2

Browse files
committed
Implemented feedback and added some content
1 parent a15291d commit 8ea3bf2

File tree

5 files changed

+199
-100
lines changed

5 files changed

+199
-100
lines changed

source/guides/core.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ Documentation Style Guide
2222
.. toctree::
2323
:maxdepth: 3
2424

25-
Introduction </process/sg_mattermost-doc-style.rst>
26-
/process/sg_document-structure.rst
27-
/process/sg_grammar-spelling-mechanics.rst
28-
/process/sg_rest_markup.rst
25+
/process/sg_mattermost-doc-style.rst
2926

3027
Joining the Team
3128
=========================

source/process/sg_document-structure.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ In most cases, a document has a title, an introductory paragraph, and one or mor
99
Try to keep only one topic in a page. Shorter topics are easier to reuse in other documents, are easier to write and edit, and are easier to translate.
1010

1111
Document title
12-
==============
12+
--------------
1313

1414
Use a title that accurately reflects the content of the document. People scan the table of contents looking for answers; it's often faster than using the built-in search engine.
1515

1616
Use title case for document titles. For more information and an example of capitalization, see :ref:`capital`.
1717

1818
Introductory paragraph
19-
======================
19+
----------------------
2020

2121
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.
2222

2323
Document sections
24-
=================
24+
-----------------
2525

2626
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.
2727

source/process/sg_grammar-spelling-mechanics.rst

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Grammar, spelling, and mechanics
55
To maintain consistency across all Mattermost technical documentation, adhere to the guidelines here.
66

77
Language and spelling
8-
=====================
8+
---------------------
99

1010
Write documents in English. Use American spelling.
1111

1212
Paragraphs and sentences
13-
========================
13+
------------------------
1414

1515
Paragraphs should express one idea or topic. Long paragraphs are sometimes difficult to read on screen, so try to keep them to 5 sentences or less. Short paragraphs are easier for people to scan quickly.
1616

1717
Try to keep sentences to 25 words or less in length. Short, single-clause sentences are often easier to understand and easier to translate.
1818

1919
Commas
20-
======
20+
------
2121

2222
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:
2323

@@ -30,7 +30,7 @@ Avoid
3030
The cows ran from wolves, coyotes and mosquitoes.
3131

3232
Tone
33-
====
33+
----
3434

3535
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.
3636

@@ -43,7 +43,7 @@ Avoid
4343
.. _capital:
4444

4545
Capitalization
46-
==============
46+
--------------
4747

4848
Use title case for page titles and sentence case for section titles.
4949

@@ -54,7 +54,7 @@ Sentence case
5454
Language and spelling
5555

5656
Voice
57-
=====
57+
-----
5858

5959
Use active voice in preference to passive voice. Active voice has the subject of a sentence doing the action. In passive voice, the subject has an action done to it. Use passive voice only when you want to emphasize the action more than the subject.
6060

@@ -65,7 +65,7 @@ Avoid
6565
The *Status* pane is opened by the system.
6666

6767
Person
68-
======
68+
------
6969

7070
Use the second person and avoid the first person.
7171

@@ -76,9 +76,11 @@ Avoid
7676
We'll view the status in the *Status* pane.
7777

7878
Numbers
79-
=======
79+
-------
8080

81-
Use decimal numbers except when the number is the first word of a sentence. Use commas to make long numbers easier to read.
81+
Spell out numbers when they are the first word in a sentence, otherwise use numeric digits.
82+
83+
Use commas to make long numbers easier to read.
8284

8385
Preferred
8486
Three cows ran for 6 kilometers when they saw 2,300,097 mosquitoes chasing them.
@@ -87,27 +89,28 @@ Avoid
8789
3 cows ran for six kilometers when they saw 2300097 mosquitoes chasing them.
8890

8991
Text highlighting
90-
=================
91-
92-
============== =========================================
93-
Text Highlight
94-
============== =========================================
95-
filepath monospace (directory paths, file names)
96-
inline code monospace
97-
code block monospace
98-
Menu selection bold
99-
UI selection bold (includes buttons, links, names of controls, and field names)
100-
text entry monospace
101-
references italic
102-
============== =========================================
103-
104-
Contractions
105-
============
106-
107-
As a general rule, contractions are acceptable in Mattermost documents.
92+
-----------------
93+
94+
Use highlighting of text to visually set off words and phrases that are important to readers. Content that should be highlighted includes file names, UI controls, and window titles. The following table has a comprehensive list with examples.
95+
96+
============== ================== =======================
97+
Text Highlight Example
98+
============== ================== =======================
99+
file name ``monospace`` ``config.py``
100+
directory name ``monospace`` ``/opt/mattermost``
101+
inline code ``monospace`` ``fmt.Printf("2 times %d = %d\n", x, y )``
102+
code samples ``monospace`` See :ref:`syntax-highlight` for an example.
103+
screen output ``monospace`` See :ref:`literal-blocks` for an example.
104+
menu selection **bold** "Click **File > Save**."
105+
UI selection **bold** "Click **Next**."
106+
field names **bold** "Enter the font in the **Display Font** field."
107+
commands ``monospace`` "At the command line, type ``sudo apt-get install nginx``."
108+
citations *italic* "Read the book *Clean Code* by Robert Martin."
109+
window titles *italic* "The *Account Settings* window opens."
110+
============== ================== =======================
108111

109112
Verb tense
110-
==========
113+
----------
111114

112115
Use the present tense.
113116

@@ -118,12 +121,12 @@ Avoid
118121
Sharing this link will let other users view the linked message.
119122

120123
Bullet lists
121-
============
124+
------------
122125

123126
The list items in a bullet list can be either all complete sentences or all sentence fragments. Don't mix complete sentences and sentence fragments in a single list. Remember that a complete sentence begins with an upper case letter and ends with a punctuation mark.
124127

125128
Numbered lists and procedures
126-
=============================
129+
-----------------------------
127130

128131
Create numbered lists and procedure steps using arabic numerals for the top-level list and lower case alpha characters for the first nested list. For example:
129132

@@ -135,3 +138,12 @@ Create numbered lists and procedure steps using arabic numerals for the top-leve
135138
b. This is another substep.
136139

137140
3. This is the third step.
141+
142+
Linking to other documents
143+
--------------------------
144+
145+
When creating a link to another document in the Mattermost documentation, create a link with a relative URL.
146+
147+
A link with an absolute URL is not as flexible as a relative URL. Relative URLs don't break when the documentation is moved to another host, or if the documentation is hosted on a server that's behind a firewall without access to the Internet.
148+
149+
To create relative links in reStructuredText, see :ref:`relative-links-in-rst`.
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
====================================
2-
Mattermost Documentation Style Guide
3-
====================================
1+
Introduction
2+
============
43

54
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.
65

@@ -9,20 +8,12 @@ This is the Mattermost style guide for documentation. It acts as a reference for
98

109
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.
1110

12-
.. comments
11+
.. contents::
12+
:backlinks: top
1313

14-
Main screen, Navigation panel, Message Details panel
15-
16-
how to link to other documents. ie, not click here
17-
18-
should be no need for section breaks, ie ---------- that gets output as <br>
19-
20-
avoid documenting features; instead, document tasks. describe things that people want to do
21-
22-
Steps: Each step should describe one action. Each step should be a complete sentence.
23-
24-
avoid noun clusters. that is, three or more nouns in a row
25-
26-
Use might or can instead of may. use 'may' only when giving permission.
27-
28-
Users sign in to Mattermost; they do not log in.
14+
.. include:: sg_document-structure.rst
15+
:start-line: 1
16+
.. include:: sg_grammar-spelling-mechanics.rst
17+
:start-line: 1
18+
.. include:: sg_rest_markup.rst
19+
:start-line: 1

0 commit comments

Comments
 (0)