Skip to content

Commit d569849

Browse files
authored
Merge pull request #32219 from github/repo-sync
Repo sync
2 parents 0b1959a + 41e06e6 commit d569849

File tree

1 file changed

+55
-12
lines changed

1 file changed

+55
-12
lines changed

content/contributing/style-guide-and-content-model/style-guide.md

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,68 @@ When writing the description for an audit log event, describe the event that too
3939

4040
## Callouts
4141

42-
Callouts highlight important information that customers need to know. We use standard formatting and colors for different types of callouts across doc sets.
42+
Callouts emphasize information within an article that is of special importance and justifies breaking the flow of information.
4343

44-
Use callouts sparingly for high-value information - do not include general information, permissions, or prerequisites in callouts. Do not include more than two bullet points in a callout.
44+
Use callouts sparingly. Do not use consecutive callouts, or more than one callout per section.
4545

46-
There are three types of in-content callouts: notes, warnings, and danger notices.
46+
Callouts should be concise. If the information consists of more than a couple of sentences, or requires an ordered or unordered list, consider placing the information under a section heading instead.
47+
48+
### Callout types
49+
50+
There are four types of callouts: tip, note, warning, and danger.
51+
52+
#### Tip
53+
54+
Recommendations, best practices or product hints. Tips contain non-essential information that users can follow at their discretion. Particularly useful in articles aimed at new users.
55+
56+
For example, "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile)" uses a tip callout to help users understand what to expect when they @mention an organization.
57+
58+
>[!TIP] When you @mention an organization, only those that you're a member of will autocomplete. You can still @mention organizations that you're not a member of, like a previous employer, but the organization name won't autocomplete for you.
59+
60+
#### Note
61+
62+
Provides additional context that users may need to take into account. Tasks can be accomplished without the information in note callouts, but some users in some contexts may benefit from the note.
63+
64+
Notes are particularly useful for communicating parenthetical information that is not central to the process being described:
65+
- Caveats that might affect the outcome of a process, such as specific user settings.
66+
- Products and features that are subject to changes in availability, such as those in beta or being deprecated.
67+
68+
For example, "[AUTOTITLE](/code-security/secret-scanning/managing-alerts-from-secret-scanning#reviewing-github-token-metadata)" uses a note to inform users that metadata for {% data variables.product.prodname_dotcom %} tokens is currently in beta.
69+
70+
>[!NOTE] Metadata for {% data variables.product.prodname_dotcom %} tokens is currently in public beta and subject to change.
71+
72+
#### Warning
73+
74+
Highlights potential risks that a user should be aware of before starting or continuing with a task.
75+
76+
Warning callouts are particularly relevant for processes that occur outside the {% data variables.product.prodname_dotcom %} UI, such as in the command line or through an API.
77+
78+
For example, "[AUTOTITLE](/enterprise-cloud@latest/organizations/managing-git-access-to-your-organizations-repositories/about-ssh-certificate-authorities)" includes instructions for the command line, and uses a warning callout to alert users that once issued, certificates cannot be revoked:
79+
80+
>[!WARNING] After a certificate has been signed and issued, the certificate cannot be revoked. Make sure to use the -V flag to configure a lifetime for the certificate, or the certificate can be used indefinitely.
81+
82+
#### Danger
83+
84+
Alerts users to dangerous or destructive actions that warrant extreme caution before performing, particularly where there is a security risk or potential for data loss.
85+
86+
Danger callouts will generally only be necessary when describing processes that occur outside the {% data variables.product.prodname_dotcom %} UI, such as in the command line or through an API.
4787

4888
### Formatting callouts
4989

50-
Each callout starts with text indicating the type of callout (e.g. **Warning**:) to orient the reader (whether accessing the site visually or with a screen reader) and helps every user gauge the importance and necessity of the information in the callout.
90+
We use standard formatting and colors for different types of callouts across doc sets.
91+
92+
Callouts are rendered using Markdown. Specify the type of callout (note, warning, or danger) by placing it in brackets, preceded by an exclamation mark.
93+
94+
Note:
95+
```[!NOTE] Keep this in mind.```
96+
97+
Warning:
98+
```[!WARNING] Be careful.```
5199

52-
Notes are rendered in blue `{% raw %}{% note %}{% endraw %}` tags.
53-
- Notes provide useful information or reminders for the user, but the information is not required to follow. Notes may not be relevant or necessary to every user.
54-
- Precede note content with `**Note:**`.
100+
Danger:
101+
```[!DANGER] Be extremely careful.```
55102

56-
Warnings and danger notices are rendered in red `{% raw %}{% warning %}{% endraw %}` tags.
57-
- Warnings are potentially dangerous actions that a user should heed before continuing with a task. They are often non-optional steps.
58-
- Precede content with `**Warning:**`.
59-
- Danger notices are dangerous actions that a user should exercise extreme caution before performing. They often involve the potential for data loss or other destructive actions.
60-
- Precede content with `**Danger:**`.
103+
Liquid syntax for callouts is still supported and may still appear in older articles, but should not be used for new callouts.
61104

62105
For more information on formatting callouts, see “Callouts” in "[AUTOTITLE](/contributing/syntax-and-versioning-for-github-docs/using-markdown-and-liquid-in-github-docs#callout-tags)."
63106

0 commit comments

Comments
 (0)