|
| 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 | + |
0 commit comments