Skip to content

Docs Style Guide

Barrie Byron edited this page Apr 12, 2023 · 21 revisions

Technical docs are a way to connect with our users. Consistent, accurate, and error-free docs build trust.

In general, we use the Google developer documentation style guide and document the exceptions here.

Our product development cycle includes creating, updating, and maintaining content. Contributions are welcome and appreciated.

For guidance not on this page, refer to these style guides:

Terminology

To ensure consistency in the documentation, be sure to follow the preferred usage of common terms. See the Word List.

Highlights

This list covers important points. For more information about topics on the page, follow the links. As always, please ask if you have questions.

Tone and Content

Language and Grammar

Syntax Conventions

  • Put UI elements in bold.
  • Enclose methods and functions in single tick marks and include the parentheses. For example, init() method, add() method.

Sidebar Capitalization

  • Use Title Case Protocol Architecture
  • Use sentence case for tasks and phrases--for example, How to use a zkApp, Install a wallet

Tip: Use a Title Capitalization tool.

Callouts

Use this Callout syntax.

You can update the callout headline, but not the callout icon.

  • Danger Use for security warnings. For example, where failure to take x action can result in a security vulnerability (for example, loss of funds or XSS attack). For example, "Always validate user-provided data to prevent XSS attacks."

    danger

  • Caution Do not use.

    caution

  • Info Use for limitations and "must know" information.

    info

  • Note Use for general and "nice to know" information.

    note

  • Tip Do not use, mostly because of the green color.

    tip

Graphics

  • Graphics are created using an iPad, stylus, and Procreate.
  • By convention, images are stored in the static/img folder.

Units of measurement

Use a non-breaking space between the number and the unit of measurement. For example, 128 GB. Use standard unit of measure abbreviations. Follow the Microsoft style guidelines.

Clone this wiki locally