Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 3.94 KB

STYLE-GUIDE.md

File metadata and controls

79 lines (53 loc) · 3.94 KB

Style Guide

This document defines some general styles we adhere to in the docs.

Language

Words are important. Pulumi strives to use language that is clear, harmonious, and friendly to all readers. With these goals in mind, we use the following guidelines:

  • Avoid ableist language:
    • Instead of crazy try wild.
    • Instead of click use select.
    • Instead of dummy use placeholder.
  • Avoid unnecessarily gendered language: Instead of guys try folks, yall, or everyone.
  • Avoid using violent language (e.g., kill).
  • Avoid pop-culture references as such references may not be familiar to all readers.
  • Instead of "go to," use "navigate".
  • Avoid directional words. Instead, link directly to the section you are referencing.

Headings

  • Ensure that readers are able to scan the headings of a page and get an effective overview of the page's content.
  • Every page should have exactly one h1.
  • Headings levels should only increment one level at a time. E.g., if your previous heading level was an h2, the next heading must be an h2 or an h3, but not, e.g., an h4 or h5.

Links

  • Link text should be descriptive and have meaning outside of the surrounding context: Avoid link text like here, click here, see here and instead link to the title of the linked page, e.g. "see Pulumi Pricing". (While this practice beneftis all readers, it is of particular important for visually impared users who use screen readers and often jump through the links of a document.)
  • When changing the URL for an already existing page, add a redirect by using a Hugo alias.

Notes and Warnings

Our docs currently support two kinds of note: info-level and warning-level.

  • Use notes in general to communicate important information.
  • Try to limit the number of notes within a single page.
  • Use info-level notes to convey general information.
  • Use warning-level notes for information that, if missed, could lead to negative or unexpected consequences.

Examples

{{% notes type="info" %}}
This bit of info is important enough to call out, but not critical.
{{% /notes %}}

{{% notes type="warning" %}}
This bit of info is serious. If you missed it, bad things could happen.
{{% /notes %}}

Paragraphs and Line Breaks

  • Keep paragraphs short, rarely use 4 or more sentences in a single paragraph.
  • When writing paragraphs, keep the entire paragraph on a single line and use "soft wrapping" in your IDE/editor to avoid a horizontal scroll. By keeping all content on a single line, PR reviewers will be able to use GitHub's suggestion feature, which allows the reviewer to directly suggest a change to the content and allows authors to directly incorporate the suggestion into their PR if desired. For details on GitHub's suggestion feature, see Incorporating feedback in your pull request.

Blockquotes

  • Use blockquotes only when directly quoting content from another source.

Example

This is something a person said.

Lists

  • Present instructional steps in lists.

Content Design

  • Lead with content that excites and engages, end with exactly one call-to-action.
  • Try and save links for the last 75% of the content.
  • Use headings and lists to make content scannable and consumable.
  • Use visauls: code, graphs, videos, architecture diagrams, etc.
  • Highlight important points.

Additional Resources