Skip to content

Commit d7532fa

Browse files
author
Chris Cho
authored
Merge pull request #126 from davemungo/DOCS-14189-issues-in-writing-guidlines
DOCS-14189 issues in writing guidlines
2 parents fe6362d + f5f0d5d commit d7532fa

File tree

6 files changed

+51
-80
lines changed

6 files changed

+51
-80
lines changed

source/style-guide/style/capitalization.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Capitalization
77
.. default-domain:: mongodb
88

99
Be judicious and consistent in your use of capitalization. This topic
10-
provides general guidelines to help you decide to capitalize a term.
10+
provides general guidelines to help you decide when to capitalize a
11+
term.
1112

1213
.. seealso::
1314

@@ -177,17 +178,17 @@ an incorrect capitalization:
177178
- ftp
178179
Command-line FTP client
179180
* - KBps
180-
kilobytes per second
181+
Kilobytes per second
181182
- Kbps
182-
kilobits per second
183+
Kilobits per second
183184
* - May
184185
Fifth month of the year
185186
- may
186-
modal verb
187+
Modal verb
187188
* - REST
188189
Representational State Transfer
189190
- rest
190-
State of motionless or inactivity
191+
State of motionlessness or inactivity
191192

192193
Capitalize Team Names
193194
---------------------
@@ -203,8 +204,6 @@ shown in the following table:
203204

204205
* - The Support team handles making the change for you.
205206

206-
* - The Support team handles making the change for you.
207-
208207
* - Contact your Account Management team can tell you what the
209208
charge will be.
210209

@@ -253,8 +252,8 @@ object in a product is a proper noun.
253252

254253
- Atlas enables users to create a *cluster*, not a *Cluster*.
255254

256-
- When the user creates a cluster, the user specifies an *cloud
257-
provider*, *tier*, and *region*, not an *Cloud Provider*, *Tier*,
255+
- When the user creates a cluster, the user specifies a *cloud
256+
provider*, *tier*, and *region*, not a *Cloud Provider*, *Tier*,
258257
and *Region*.
259258

260259
- A user can create a *load balancer*, not a *Load Balancer*.

source/style-guide/style/code-examples.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
Code Examples
55
=============
66

7-
.. include:: /style-guide/includes/page-needs-update.rst
8-
9-
.. note::
10-
11-
For more information about formatting code, see the "Code" row in
12-
the Text formatting topic.
13-
147
Use the following guidelines when creating blocks of code as input
158
or output examples:
169

@@ -109,7 +102,7 @@ Create a VM Running a Docker Host
109102
NAME ACTIVE DRIVER STATE URL SWARM
110103
test virtualbox Running tcp://192.168.99.101:237
111104

112-
Run the application
105+
Run the Application
113106
-------------------
114107

115108
#. Run a container from the image. The application code uses the

source/style-guide/style/placeholder-variable-text.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Placeholder or Variable Text
88

99
Use placeholder text for a value when you:
1010

11-
- don't know its specific value
12-
- don't or shouldn't use an example value
11+
- Don't know its specific value
12+
- Don't or shouldn't use an example value
1313

1414
Use placeholders when demonstrating how a command or path should be
1515
constructed. Users supply the relevant value for the placeholder when
1616
using the command or syntax. When using placeholders, instruct users to
1717
replace the placeholders with the relevant values.
1818

19-
Placeholder text can also referred to as *variable text* or
19+
Placeholder text is also referred to as *variable text* or
2020
*replaceable text*.
2121

2222
Placeholder text usually indicates the type of element that's being

source/style-guide/style/punctuation.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Punctuation
88

99
Use punctuation correctly and consistently. This section provides
1010
guidelines for using punctuation in MongoDB documentation. For basic
11-
rules about punctuation, see :`section 5, Grammar and Usage
12-
<https://www.chicagomanualofstyle.org/book/ed17/part2/ch05/toc.html>`__ in the *Chicago Manual of Style*.
11+
rules about punctuation, see `section 5, Grammar and Usage
12+
<https://www.chicagomanualofstyle.org/book/ed17/part2/ch05/toc.html>`__
13+
in the *Chicago Manual of Style*.
1314

1415
.. contents:: On this page
1516
:local:
@@ -62,9 +63,10 @@ Use the following guidelines for colons:
6263
Commas
6364
~~~~~~
6465

65-
Use the following guidelines for commas. For basic comma usage,
66-
`section 6.16, Commas <https://www.chicagomanualofstyle.org/book/ed17/part2/ch06/psec016.html>`__ in the Chicago
67-
Manual of Style.
66+
Use the following guidelines for commas. For basic comma usage, see
67+
`section 6.16, Commas
68+
<https://www.chicagomanualofstyle.org/book/ed17/part2/ch06/psec016.html>`__
69+
in the *Chicago Manual of Style*.
6870

6971
.. list-table::
7072
:widths: 40 30 30
@@ -299,7 +301,8 @@ be necessary in the following cases:
299301

300302
For the correct formatting of a specific word, see a dictionary or
301303
:ref:`alphabetical-list-of-terms`. For more information about
302-
hyphenating prefixes, see *The Chicago Manual of Style*.
304+
hyphenating prefixes, see `The Chicago Manual of Style
305+
<https://www.chicagomanualofstyle.org/qanda/data/faq/topics/HyphensEnDashesEmDashes/faq0079.html>`__.
303306

304307
Parentheses
305308
~~~~~~~~~~~
@@ -347,7 +350,9 @@ Periods
347350
~~~~~~~
348351

349352
Use the following guidelines for periods. For basic period usage, see a
350-
grammar reference, `section 6.12, Periods <https://www.chicagomanualofstyle.org/book/ed17/part2/ch06/psec012.html>`__ in the *Chicago Manual of Style*.
353+
grammar reference, `section 6.12, Periods
354+
<https://www.chicagomanualofstyle.org/book/ed17/part2/ch06/psec012.html>`__
355+
in the *Chicago Manual of Style*.
351356

352357
- Use a period at the end of a declarative or imperative sentence, and
353358
insert only one space after the period.

source/style-guide/style/tasks.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ steps. You could include the following information:
9393
Procedures
9494
~~~~~~~~~~
9595

96-
A task contains one or more *procedures*, or set of sequential action
96+
A task contains one or more *procedures* or sets of sequential action
9797
steps. Consider the following guidelines when creating a procedure:
9898

9999
- If the procedure has more than one step, use a ``steps`` file for
@@ -156,7 +156,7 @@ the menu, you can include both actions in one step.
156156

157157
#. If you're prompted to save your file, save it to your computer.
158158

159-
Provide context before the action
159+
Provide Context Before the Action
160160
`````````````````````````````````
161161

162162
If a step specifies where to perform an action, state where to perform
@@ -169,8 +169,8 @@ the action before describing the action.
169169
#. On the Binding and SSL Settings page, perform the following
170170
steps:
171171

172-
Provide conditions before actions
173-
`````````````````````````````````
172+
Provide Conditions Before the Action
173+
````````````````````````````````````
174174

175175
If a step specifies a situation or a condition, state the situation or
176176
condition before describing the action.

source/style-guide/style/text-formatting.txt

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ You should add formatting to words, phrases, or blocks that require
1010
emphasis. You can use one of the formatting options to convey emphasis:
1111
weight (**bold**), variant (*italics*), or pitch (``monospace``).
1212

13-
.. note::
14-
15-
Characters in a *monospace*, *fixed-pitch* or *fixed-width* font
16-
occupy the same amount of horizontal space. In MongoDB
17-
documentation, we use the monospace font *Source Code Pro*. This
18-
font looks as follows: ``monospace font``
19-
2013
When formatting text, use the following guidelines:
2114

2215
- To apply a font treatment, use the appropriate markup in your
@@ -124,7 +117,7 @@ elements. The following style differences are highlighted:
124117

125118
Box names
126119
This covers check box, combo box, group box, list box, spin box,
127-
text box, but not dialog box. Format using ``:guilabel:`` role.
120+
and text box. Format them using the ``:guilabel:`` role.
128121

129122
.. class:: exampletable
130123

@@ -518,12 +511,12 @@ elements. The following style differences are highlighted:
518511
:copyable: false
519512

520513
The following example shows a basic configuration for
521-
the FTP service, in a file in the ``/etc/xinetd.d
522-
directory``.
514+
the FTP service, in a file in the ``/etc/xinetd.d/``
515+
directory.
523516

524517
* - Rendered Example
525518
- The following example shows a basic configuration for the
526-
FTP service, in a file in the ``/etc/xinetd.d directory``.
519+
FTP service, in a file in the ``/etc/xinetd.d/`` directory.
527520

528521
Document titles
529522
Format using *italics*.
@@ -645,7 +638,8 @@ elements. The following style differences are highlighted:
645638

646639
* - Linux, macOS
647640
- Format using ``monospace`` text and uppercase letters.
648-
Start with ``$`` when getting, omit the ``$`` when assigning.
641+
Start with ``$`` when getting, omit the ``$`` when
642+
assigning.
649643
-
650644
.. code-block:: console
651645

@@ -654,7 +648,8 @@ elements. The following style differences are highlighted:
654648
echo $HOME
655649
* - DOS, Windows Command-Line Interpreter
656650
- Format using ``monospace`` text and uppercase letters.
657-
Start and end with ``%`` when getting, omit the ``%`` when assigning.
651+
Start and end with ``%`` when getting, omit the ``%`` when
652+
assigning.
658653
-
659654
.. code-block:: doscon
660655

@@ -764,35 +759,35 @@ elements. The following style differences are highlighted:
764759
:copyable: false
765760

766761
db.collection.create_index(
767-
[
768-
(<keyAndIndexTypeSpecification>
769-
], <options>
770-
)
762+
[
763+
(<keyAndIndexTypeSpecification>
764+
], <options>
765+
)
771766

772767
.. code-block:: java
773768
:copyable: false
774769

775770
collection.createIndex(
776771
<keyAndIndexTypeSpecification>, <options>
777-
)
772+
)
778773

779774
* - Rendered Example
780775
-
781776
.. code-block:: javascript
782777
:copyable: false
783778

784779
db.collection.create_index(
785-
[
786-
(<keyAndIndexTypeSpecification>)
787-
], <options>
788-
)
780+
[
781+
(<keyAndIndexTypeSpecification>)
782+
], <options>
783+
)
789784

790785
.. code-block:: java
791786
:copyable: false
792787

793788
collection.createIndex(
794789
<keyAndIndexTypeSpecification>, <options>
795-
)
790+
)
796791

797792
Field names, GUI
798793
Format using ``:guilabel:`` role.
@@ -1182,31 +1177,6 @@ elements. The following style differences are highlighted:
11821177
- Client authentication is provided through a REST interface
11831178
by using the ``GET`` method.
11841179

1185-
New terms
1186-
Format using *italics*.
1187-
1188-
.. class:: exampletable
1189-
1190-
.. list-table::
1191-
:widths: 25 75
1192-
:stub-columns: 1
1193-
1194-
* - Code Example
1195-
-
1196-
.. code-block:: rst
1197-
:copyable: false
1198-
1199-
Clusters that are built using the base Linux images are
1200-
created without a dedicated swap partition and with
1201-
*swappiness* (a measure of how the Linux kernel tries to
1202-
use swap memory) set to 0.
1203-
1204-
* - Rendered Example
1205-
- Clusters that are built using the base Linux images are
1206-
created without a dedicated swap partition and with
1207-
*swappiness* (a measure of how the Linux kernel tries to
1208-
use swap memory) set to 0.
1209-
12101180
Option names, command
12111181
Format using ``:option:`` role.
12121182

@@ -1413,6 +1383,8 @@ elements. The following style differences are highlighted:
14131383
firewall changes as a normal user with ``sudo``
14141384
privileges.
14151385

1386+
The user is granted ALL privileges on the database.
1387+
14161388
* - Rendered Example
14171389
- The following examples assume that you're making the
14181390
firewall changes as a normal user with ``sudo`` privileges.
@@ -1503,7 +1475,7 @@ elements. The following style differences are highlighted:
15031475
:guilabel:`Next`.
15041476

15051477
Role names
1506-
Format using the ``:authrole:`` or ``atlasrole:`` as appropriate
1478+
Format using the ``:authrole:`` or ``:atlasrole:`` as appropriate
15071479
for the documented product's roles. Otherwise, format as regular
15081480
text.
15091481

@@ -1551,6 +1523,8 @@ elements. The following style differences are highlighted:
15511523
is ``chown``. The most common syntax used with ``chown``
15521524
is as follows:
15531525

1526+
``chown user:group file1 file2 file3``
1527+
15541528
* - Rendered Example
15551529
- The main command used to change a file’s owner or group is
15561530
``chown``. The most common syntax used with ``chown`` is as

0 commit comments

Comments
 (0)