This guide outlines the standards for writing documentation for Saleor. Whether you're documenting features for developers, creating merchant guides, or writing technical evaluations, these guidelines will help you create clear, consistent, and user-friendly content. For maximum efficiency 🚀, we recommend using an LLM to enforce these standards.
- Grammarly - Use Grammarly for spell-checking. We recommend installing the VS Code extension. If you're a Saleor team member, log in with your work email to join the organization.
- Hemingway App - Use the Hemingway App to evaluate sentence complexity and encourage shorter, clearer phrasing.
When writing documentation, consider your audience. Are you writing for developers, merchants, or evaluators? This choice determines your tone, level of detail, and examples.
- Use a professional, friendly tone
- Speak directly to the reader using "you"
- Avoid jokes, slang, or informal phrases
- Focus on what the user wants to accomplish
- Explain concepts clearly instead of calling them "easy" or "simple"
Avoid unnecessary complexity. Prioritize clarity over cleverness.
- Bad: The implementation of this functionality necessitates the utilization of asynchronous API calls.
+ Good: This feature uses async API calls for better performance.
Use consistent terminology and phrasing.
- Bad: First, log into your account. After signing in, navigate to settings.
+ Good: First, log into your account. After logging in, navigate to settings.
Avoid constructions that obscure who is doing the action.
- Bad: The command "npm i -g @saleor/cli" must be executed before...
+ Good: You must execute the command "npm i -g @saleor/cli" before...
Use second person ("you") to engage the user.
- Bad: Users should configure their settings before proceeding.
+ Good: You should configure your settings before proceeding.
Begin each document with a short paragraph that provides context and sets expectations.
## Product API Overview
This API lets you programmatically access and manage product data. This guide covers authentication, available endpoints, and common use cases.
Always link to other relevant docs using relative links.
- Bad: See the setup instructions.
+ Good: See the [Setup Guide](./getting-started.md).
Follow The Chicago Manual of Style for both page titles and sidebar entries.
Use headings to break documentation into meaningful sections:
# Authentication
## Obtaining API Keys
### API Key Permissions
- Avoid idioms or cultural references
- Use clear, literal language
- Minimize text in images or provide alt text
- Don't translate code, variable names, or UI keywords
- Use gender-neutral and inclusive language when applicable
Use backticks for inline code elements:
- Bad: Enter your API key in the apiKey field.
+ Good: Enter your API key in the `apiKey` field.
Annotate code blocks with the language:
```js
const saleor = new SaleorClient(API_URL);
```
Verify that all examples are runnable. Don't include broken or speculative code.
Make examples easy to copy and reuse. Avoid prompts like $
unless explicitly required.
Only include screenshots when necessary. They age quickly and are hard to maintain. Use them only for UX-dependent features that can't be easily described.
Use Mermaid diagrams to explain flows or systems.
Before publishing, verify:
- Proper nouns are capitalized:
- GraphQL, not graphql, Graphql, graphQl
- GitHub, not Github, github
- Snippets and screenshots are up to date
- Technical terms and variable names use
code blocks
- Each reference to another page is linked
- All code examples are tested and accurate
- Headings follow a logical Markdown hierarchy
- The tone is active, direct, and uses second person ("you")
- The document starts with a short overview paragraph