Docs style guide
Write
- Use short sentences. One idea in each sentence. Use the active voice and the present tense.
- Use digits for numbers. Write the product name as “LocalAI”.
- Say what the code does. Do not promise features that are not released. Do not write “coming soon” or “roadmap”.
- Do not use marketing words, such as “powerful”, “seamless” or “unlock”. Do not write “any model”. Name the models that run, or say “open models”. The product line is “Your own AI, on your own hardware. Ready to work for you.”
- Do not claim that data stays on the machine. Text can leave it when you use a cloud model, or an add-on that calls a service. Say which.
- Mark an add-on as an add-on, and say when it is in the development channel of the library.
- Do not write internal host names, addresses, local paths or names of people.
Page template
- The goal in one or two sentences.
- What you need.
- Numbered steps.
- What you should see.
- Troubleshooting, as a table of what you see and what to do.
- Next steps.
A page answers one task. Move a page over 400 lines to Reference, or split it.
Front matter
The URL follows the file path. Do not set url. When you move a page, add its old URL to aliases and to docs/redirects.txt.
Links and images
- Link to other pages with
{{% relref "/section/page" %}}. - Give every image alt text. Check that the image shows in the light and the dark variant.
- Images that you link from a page start with
/docs/images/. - Do not commit a screenshot that shows personal data.
Check before you push
The pull request build runs the same checks.