Skip to content

Commit fe3485e

Browse files
(DOCSP-11392): Updated Call-outs page (#63)
* (DOCSP-11392): Updated Call-outs page * copy review * Update source/style-guide/style/callouts.txt Co-authored-by: Anthony Sansone <[email protected]> * Apply suggestions from code review Co-authored-by: Anthony Sansone <[email protected]> Co-authored-by: Anthony Sansone <[email protected]>
1 parent ff3ae0e commit fe3485e

File tree

4 files changed

+110
-68
lines changed

4 files changed

+110
-68
lines changed

source/style-guide/style/callouts.txt

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
.. _callouts:
2+
3+
========================
4+
Callouts and Admonitions
5+
========================
6+
7+
.. default-domain:: mongodb
8+
9+
.. include:: /includes/styles/corrections.rst
10+
11+
Callouts or admonitions emphasize important or
12+
helpful information. Use callouts sparingly to avoid clutter on
13+
the page and to preserve visual impact.
14+
15+
Callout Types
16+
-------------
17+
18+
You can use the following callouts:
19+
20+
.. list-table::
21+
:widths: 20 60 30
22+
:header-rows: 1
23+
24+
* - Callout Type
25+
- Description
26+
- Directive
27+
* - Tip
28+
- Provides useful information that might improve product
29+
performance or make procedures easier to follow. Tips provide
30+
the following benefits:
31+
32+
- Help users learn techniques or procedures
33+
- Show alternative ways of doing something
34+
- Provide shortcuts
35+
- Provide helpful (but not essential) information
36+
37+
- ``.. tip:: <title>``
38+
39+
* - Note
40+
- Provides information that emphasizes or supplements information
41+
in the text. A note can provide information that applies only in
42+
certain cases.
43+
- ``.. note:: <title>``
44+
* - Important
45+
- Presents an important or essential point. As a rule, users must
46+
pay attention to important callouts to complete a task or
47+
understand a topic.
48+
- ``.. important:: <title>``
49+
* - Warning
50+
- Alerts users to potential hazards or highlights critical
51+
information. Use a warning for situations in which users could
52+
lose data, compromise data integrity, or disrupt operations if
53+
they don't follow instructions carefully.
54+
- ``.. warning:: <title>``
55+
* - Example
56+
- Presents a scenario that illustrates or demonstrates a concept in
57+
the text.
58+
- ``.. example:: <title>``
59+
* - See
60+
- Provides a link to a topic or section directly related to the
61+
preceding text. You might use ``see`` to link to content with
62+
necessary procedures, definitions, or deployment considerations
63+
and impacts.
64+
- ``.. see::``
65+
* - See also
66+
- Provides a link to topics or sections that are generally related
67+
to or provide useful context for the preceding text. You might
68+
use ``seealso`` to link to content that provides background
69+
information, deeper context, or common related tasks.
70+
- ``.. seealso::``
71+
72+
Callout Guidelines
73+
------------------
74+
When creating callouts, use the following guidelines:
75+
76+
- Use the callout type to convey the kind of information you want
77+
to communicate. Don't rely on color to convey intensity.
78+
79+
- Use the correct {+rst+} directive to create the callout. Don't
80+
attempt to create callouts using boldface, headings, or custom
81+
:abbr:`CSS (Cascading Style Sheets)`.
82+
83+
- Avoid nesting callouts inside tables and other elements.
84+
85+
- Avoid nesting code blocks inside callouts.
86+
87+
- Place a callout as close as possible to the information that it
88+
emphasizes or clarifies.
89+
90+
- Don't "stack" callouts of the same type (for example, by following
91+
one labeled note directly with another labeled note). Instead, use
92+
separate paragraphs or an unordered list within a single callout.
93+
You can have callouts of different types follow one
94+
another.
95+
96+
The following callouts might appear in existing documentation but are
97+
deprecated. Don't use these callouts in new content:
98+
99+
- ``.. admonition::``
100+
- ``.. caution::``
101+
- ``.. danger::``
102+
- ``.. topic::``
103+

source/style-guide/style/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ instructions for applying style conventions.
1212
:maxdepth: 1
1313

1414
/style-guide/style/abbreviations
15+
/style-guide/style/callouts
1516
/style-guide/style/capitalization
1617
/style-guide/style/citations
1718
/style-guide/style/code-examples
@@ -27,7 +28,6 @@ instructions for applying style conventions.
2728
/style-guide/style/lists
2829
/style-guide/style/messages
2930
/style-guide/style/names
30-
/style-guide/style/notations
3131
/style-guide/style/numbers
3232
/style-guide/style/parameters
3333
Placeholders for APIs </style-guide/style/cloud-account-info>

source/style-guide/style/notations.txt

Lines changed: 0 additions & 61 deletions
This file was deleted.

source/style-guide/style/tables.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Use the following guidelines for text in table cells:
9494
for matrix-type tables that use an X or other marker to indicate
9595
support. In such cases, blank cells are acceptable (see the third
9696
example at the end of this topic).
97-
- When showing a notation (for example, a note or warning) in a table,
98-
use the guidelines in :ref:`notations`.
97+
- When showing a call-out (for example, a note or warning) in a table,
98+
use the guidelines in :ref:`callouts`.
9999
- If space in a table is constrained, you can use abbreviations and
100100
symbols that you wouldn't normally use in body text (such as % for
101101
percent).
@@ -104,10 +104,10 @@ Use the following guidelines for text in table cells:
104104
Table Footnotes
105105
---------------
106106

107-
If a notation (for example, a note or warning) applies to the entire
108-
table, place the content in a regular notation preceding the table. If
109-
a notation applies only to the content in a certain cell, place the
110-
notation in that cell. However, if a notation applies to all of the
107+
If a callout (for example, a note or warning) applies to the entire
108+
table, place the content in a regular callout preceding the table. If
109+
a callout applies only to the content in a certain cell, place the
110+
callout in that cell. However, if a call-out applies to all of the
111111
content in a row or column, or to the content in two or more cells, you
112112
can use footnotes.
113113

0 commit comments

Comments
 (0)