Skip to content

Commit f7a7c77

Browse files
authored
Merge pull request #170 from JuliaMongo/DOCSP-33533-followup
(DOCSP-33533) Follow-up small edits
2 parents 827080c + cfed0ca commit f7a7c77

25 files changed

+215
-70
lines changed

source/practices.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Practices and Processes
33
=======================
44

5+
.. contents:: On this page
6+
:local:
7+
:backlinks: none
8+
:depth: 2
9+
:class: singlecol
10+
511
This document provides an overview of the practices and processes.
612

713
Commits

source/reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Reference
1818
/reference/lightbox
1919
/reference/options
2020
/reference/source-constants
21+
/style-guide/markup/format/substitutions
2122
/reference/suppressing-prevnext-links
2223
/reference/xmlrole

source/style-guide/error-message-guidelines.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Error Message Guidelines
66

77
.. default-domain:: mongodb
88

9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
915
Developers often ask a technical writer to edit error messages
1016
that they have written.
1117

@@ -65,16 +71,16 @@ control panel.
6571

6672
Include articles (a, an, the) to
6773
make the sentence complete. If possible, use active voice.
68-
- The authentication token isnt valid.
74+
- The authentication token isn't valid.
6975
- Invalid authentication token.
7076
* - Use more than one sentence if required for clarity.
7177

7278
Write brief and simple sentences that clearly state the problem.
7379
Separate the sentences with a period (or question mark, if
7480
applicable), but not with a semicolon.
75-
- Provide a name for each domain. *null* isnt a valid domain
81+
- Provide a name for each domain. *null* isn't a valid domain
7682
name.
77-
- You must provide a name for each domain and *null* isnt a valid
83+
- You must provide a name for each domain and *null* isn't a valid
7884
name.
7985
* - Use proper punctuation. For guidelines, see :ref:`punctuation`.
8086
- ``FED2-013: Token expiration cannot exceed seconds.``
@@ -83,7 +89,7 @@ control panel.
8389

8490
Lines with excessive capitalization are hard to read. Use all
8591
uppercase letters only for words that require it, such as a
86-
keyword, a data type, or a specific table name thats displayed
92+
keyword, a data type, or a specific table name that's displayed
8793
in all uppercase letters to a database user. For more
8894
information, see :ref:`capitalization`.
8995
- The requested image ``$UUID`` has automatic disk resizing
@@ -97,11 +103,11 @@ control panel.
97103
- The system is out of virtual IP addresses. Contact Support so
98104
they can allocate more virtual IP addresses.
99105

100-
The value -1.0 cant be accepted. Specify a positive integer
106+
The value -1.0 can't be accepted. Specify a positive integer
101107
value for the volume size.
102108
- The system is out of virtual IP addresses.
103109

104-
The value -1.0 cant be accepted.
110+
The value -1.0 can't be accepted.
105111
* - Be specific and provide as much detailed information as
106112
possible.
107113
- The live migration of instance
@@ -122,15 +128,15 @@ control panel.
122128

123129
Rewrite messages that imply fault on the part of the user. Use
124130
passive voice when necessary.
125-
- The request couldnt be understood by the server because of
131+
- The request couldn't be understood by the server because of
126132
malformed syntax.
127133
- You entered bad request syntax.
128134
* - Use positive statements.
129135

130136
Positive statements are easier to understand than negative
131137
statements.
132138
- The given limit must be less than 50.
133-
- The given limit cant be greater than 50.
139+
- The given limit can't be greater than 50.
134140

135141
Message Types
136142
-------------

source/style-guide/markup/directives/metadata.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44
Page Metadata Directives
55
========================
66

7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. default-domain:: mongodb
14+
715
meta
816
----
917

10-
Use ``.. meta::`` to add |html| ``<meta>`` tags to a page. These tags are not
11-
provide other systems such as web browsers, search engines, and other web
18+
Use ``.. meta::`` to add |html| ``<meta>`` tags to a page. These tags
19+
provide other systems, such as web browsers, search engines, and other web
1220
services, with information about the page.
1321

1422
You can specify the ``keywords`` and ``description`` name attributes, which

source/style-guide/markup/directives/sharedinclude.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Shared Include
55
==============
66

7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
713
The ``sharedinclude`` directive lets you source content from a file located in
814
the MongoDB internal `docs-shared <https://github.com/10gen/docs-shared>`__
915
repository. Use this directive when you need to keep the same content in sync

source/style-guide/markup/format/lists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Lists
33
=====
44

5+
.. contents:: On this page
6+
:local:
7+
:backlinks: none
8+
:depth: 2
9+
:class: singlecol
10+
511
Lists are body elements that organize information into adjacent blocks of
612
markup. Each level of a list must start and end with a blank line.
713

source/style-guide/markup/format/substitutions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Substitutions
33
=============
44

5+
.. contents:: On this page
6+
:local:
7+
:backlinks: none
8+
:depth: 2
9+
:class: singlecol
10+
511
In Snooty, you can use variables to represent a text value in the
612
rendered form of the documentation. These variables are called
713
source constants. When used consistently, they help prevent inconsistencies in

source/style-guide/seo-guidelines.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
Search Engine Optimization Guidelines
55
=====================================
66

7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. default-domain:: mongodb
14+
715
Search Engine Optimization (SEO) considers the actual terms that users
816
enter into search engines (keywords) and employs best practices to
917
improve traffic to web pages from search engines. Close attention to page metadata and keywords in the page content can improve page placement in search results. The following
@@ -97,7 +105,7 @@ the following best practices:
97105
- Use a concise description of the page content that is enticing, if
98106
possible.
99107

100-
- Emphasize the why for using the page.
108+
- Emphasize the "why" for using the page.
101109

102110
- Use a maximum of 155 characters.
103111

source/style-guide/style/abbreviations.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Abbreviations
66

77
.. default-domain:: mongodb
88

9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
915
- Unless an abbreviation is common, spell out the words of the
1016
abbreviation on the first use in an article or topic.
1117

source/style-guide/style/callouts.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Callouts and Admonitions
66

77
.. default-domain:: mongodb
88

9-
Callouts or admonitions emphasize important or
10-
helpful information. Use callouts sparingly to avoid clutter on
11-
the page and to preserve visual impact.
9+
Callouts or admonitions emphasize important or helpful information.
10+
To avoid clutter on the page and to preserve visual impact, use callouts
11+
sparingly.
1212

1313
Callout Types
1414
-------------
@@ -69,6 +69,7 @@ You can use the following callouts:
6969

7070
Callout Guidelines
7171
------------------
72+
7273
When creating callouts, use the following guidelines:
7374

7475
- Use the callout type to convey the kind of information you want
@@ -78,18 +79,23 @@ When creating callouts, use the following guidelines:
7879
attempt to create callouts using boldface, headings, or custom
7980
:abbr:`CSS (Cascading Style Sheets)`.
8081

82+
- Don't stack multiple callouts directly after one another, as these can
83+
distract users. To avoid stacking callouts, group supplemental information
84+
from callouts into a dedicated section.
85+
86+
- If possible, don't use callouts in tables and option lists
87+
Callouts reduce the scannability of tables and options lists.
88+
8189
- Avoid nesting callouts inside tables and other elements.
8290

8391
- Avoid nesting code blocks inside callouts.
8492

8593
- Place a callout as close as possible to the information that it
8694
emphasizes or clarifies.
8795

88-
- Don't "stack" callouts of the same type (for example, by following
89-
one labeled note directly with another labeled note). Instead, use
90-
separate paragraphs or an unordered list within a single callout.
91-
You can have callouts of different types follow one
92-
another.
96+
- Avoid stacking callouts of the same type. For example, avoid adding
97+
one labeled note directly after another labeled note. Instead, use
98+
a single callout that contains separate paragraphs or an unordered list.
9399

94100
The following callouts might appear in existing documentation but are
95101
deprecated. Don't use these callouts in new content:

source/style-guide/style/cloud-account-info.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ API Placeholders
66

77
.. default-domain:: mongodb
88

9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
915
When users learn how to use our API, they might copy the code and try
1016
to use it as given.
1117

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Code Examples
55
=============
66

7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
713
Use the following guidelines when creating blocks of code as input
814
or output examples:
915

source/style-guide/style/glossaries.txt

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Glossaries
66

77
.. default-domain:: mongodb
88

9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
915
Create a glossary to document the following items:
1016

1117
- New, unfamiliar, or unique terms
@@ -14,15 +20,16 @@ Create a glossary to document the following items:
1420

1521
This section provides guidelines for the following items:
1622

17-
.. contents:: On this page
18-
:local:
19-
:backlinks: none
20-
:depth: 1
21-
:class: singlecol
23+
- :ref:`glossary-terms`
24+
- :ref:`glossary-definitions`
25+
- :ref:`glossary-xrefs`
26+
- :ref:`glossary-guidelines`
2227

2328
For guidelines about formatting glossary terms that are used in regular
2429
text, see :ref:`text-formatting`.
2530

31+
.. _glossary-terms:
32+
2633
Glossary Terms
2734
--------------
2835

@@ -58,6 +65,8 @@ slashes, and apostrophes continue a single word.
5865

5966
newspaper
6067

68+
.. _glossary-definitions:
69+
6170
Glossary Definitions
6271
--------------------
6372

@@ -119,6 +128,8 @@ The following table shows examples.
119128
and protocols that programmers can use to create application
120129
services by using an open application.
121130

131+
.. _glossary-xrefs:
132+
122133
Cross-References to Glossary Terms
123134
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124135

@@ -168,6 +179,8 @@ glossary:
168179
To recover by dropping the selected database and re-creating it.
169180
*Contrast with* copy over.
170181

182+
.. _glossary-guidelines:
183+
171184
Guidelines for a Comprehensive Glossary
172185
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173186

@@ -196,7 +209,7 @@ comprehensive glossary:
196209
information about third-party terms. A MongoDB glossary should
197210
contain mainly MongoDB terms. If the user could find the meaning
198211
outside of a MongoDB document by using a browser search, then we
199-
probably dont need to include it in the glossary. For example,
212+
probably don't need to include it in the glossary. For example,
200213
*Apache*.
201214

202215
- If a term is specific to one MongoDB service, start the definition

source/style-guide/style/ip-addresses.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ IP Addresses
66

77
.. default-domain:: mongodb
88

9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
915
An *IP address* uses a sequence of numbers to uniquely identify a
1016
particular computer on the Internet.
1117

0 commit comments

Comments
 (0)